CVE-2026-4878
Detail
Modified After Enrichment
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
Description
A flaw was found in libcap. A local unprivileged user can exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the `cap_set_file()` function. This allows an attacker with write access to a parent directory to redirect file capability updates to an attacker-controlled file. By doing so, capabilities can be injected into or stripped from unintended executables, leading to privilege escalation.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0 Severity and Vector Strings:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
URL
Source(s)
Tag(s)
http://www.openwall.com/lists/oss-security/2026/04/07/14
CVE
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2026/04/07/4
CVE
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2026/04/08/9
CVE
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2026/04/09/5
CVE
Exploit
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2026/04/09/6
CVE
Exploit
Mailing List
Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:12423
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:12441
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:13285
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:14162
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:14937
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:19130
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:19346
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:19456
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:19458
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:20595
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:21254
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:21275
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:22634
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:22957
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:23233
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:23245
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:24346
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:25096
Red Hat, Inc.
https://access.redhat.com/errata/RHSA-2026:7473
Red Hat, Inc.
Vendor Advisory
https://access.redhat.com/security/cve/CVE-2026-4878
Red Hat, Inc.
Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2447554
Red Hat, Inc.
Permissions Required
https://bugzilla.redhat.com/show_bug.cgi?id=2451615
Red Hat, Inc.
Issue Tracking
Vendor Advisory
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-367
Time-of-check Time-of-use (TOCTOU) Race Condition
Red Hat, Inc.
Change History
22 change records found show changes
CVE Modified by Red Hat, Inc. 6/11/2026 6:16:21 AM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:23233
CVE Modified by Red Hat, Inc. 6/10/2026 2:17:11 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:25096
CVE Modified by Red Hat, Inc. 6/10/2026 12:17:13 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:23245
CVE Modified by Red Hat, Inc. 6/07/2026 11:16:20 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:24346
CVE Modified by Red Hat, Inc. 6/03/2026 8:17:00 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:22957
CVE Modified by Red Hat, Inc. 6/02/2026 4:16:40 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:22634
CVE Modified by Red Hat, Inc. 5/27/2026 5:16:32 AM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:21254
CVE Modified by Red Hat, Inc. 5/27/2026 4:16:44 AM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:21275
CVE Modified by Red Hat, Inc. 5/26/2026 5:16:21 AM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:20595
CVE Modified by Red Hat, Inc. 5/20/2026 1:16:21 AM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:19458
CVE Modified by Red Hat, Inc. 5/20/2026 12:16:53 AM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:19456
CVE Modified by Red Hat, Inc. 5/19/2026 7:16:57 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:19346
CVE Modified by Red Hat, Inc. 5/19/2026 1:16:23 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:19130
CVE Modified by Red Hat, Inc. 5/07/2026 6:16:36 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:14937
CVE Modified by Red Hat, Inc. 5/06/2026 12:16:10 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:14162
CVE Modified by Red Hat, Inc. 5/03/2026 10:15:58 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:13285
CVE Modified by Red Hat, Inc. 4/30/2026 4:16:24 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:12441
CVE Modified by Red Hat, Inc. 4/30/2026 2:16:30 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:12423
Initial Analysis by NIST 4/27/2026 8:41:49 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Added
CPE Configuration
OR
*cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
*cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
*cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
*cpe:2.3:a:libcap_project:libcap:-:*:*:*:*:*:*:*
*cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
Added
Reference Type
CVE: http://www.openwall.com/lists/oss-security/2026/04/07/14 Types: Mailing List, Third Party Advisory
Added
Reference Type
CVE: http://www.openwall.com/lists/oss-security/2026/04/07/4 Types: Mailing List, Third Party Advisory
Added
Reference Type
CVE: http://www.openwall.com/lists/oss-security/2026/04/08/9 Types: Mailing List, Third Party Advisory
Added
Reference Type
CVE: http://www.openwall.com/lists/oss-security/2026/04/09/5 Types: Exploit, Mailing List, Third Party Advisory
Added
Reference Type
CVE: http://www.openwall.com/lists/oss-security/2026/04/09/6 Types: Exploit, Mailing List, Third Party Advisory
Added
Reference Type
Red Hat, Inc.: https://access.redhat.com/errata/RHSA-2026:7473 Types: Vendor Advisory
Added
Reference Type
Red Hat, Inc.: https://access.redhat.com/security/cve/CVE-2026-4878 Types: Vendor Advisory
Added
Reference Type
Red Hat, Inc.: https://bugzilla.redhat.com/show_bug.cgi?id=2447554 Types: Permissions Required
Added
Reference Type
Red Hat, Inc.: https://bugzilla.redhat.com/show_bug.cgi?id=2451615 Types: Issue Tracking, Vendor Advisory
CVE Modified by Red Hat, Inc. 4/24/2026 10:16:03 PM
Action
Type
Old Value
New Value
Added
Reference
https://access.redhat.com/errata/RHSA-2026:7473
CVE Modified by CVE 4/09/2026 12:16:31 PM
Action
Type
Old Value
New Value
Added
Reference
http://www.openwall.com/lists/oss-security/2026/04/07/14
Added
Reference
http://www.openwall.com/lists/oss-security/2026/04/07/4
Added
Reference
http://www.openwall.com/lists/oss-security/2026/04/08/9
Added
Reference
http://www.openwall.com/lists/oss-security/2026/04/09/5
Added
Reference
http://www.openwall.com/lists/oss-security/2026/04/09/6
New CVE Received from Red Hat, Inc. 4/09/2026 12:16:31 PM
Action
Type
Old Value
New Value
Added
Description
A flaw was found in libcap. A local unprivileged user can exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the `cap_set_file()` function. This allows an attacker with write access to a parent directory to redirect file capability updates to an attacker-controlled file. By doing so, capabilities can be injected into or stripped from unintended executables, leading to privilege escalation.
Added
CVSS V3.1
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Added
CWE
CWE-367
Added
Reference
https://access.redhat.com/security/cve/CVE-2026-4878
Added
Reference
https://bugzilla.redhat.com/show_bug.cgi?id=2447554
Added
Reference
https://bugzilla.redhat.com/show_bug.cgi?id=2451615
Quick Info
CVE Dictionary Entry: CVE-2026-4878 NVD
Published Date: 04/09/2026 NVD
Last Modified: 06/11/2026
Source: Red Hat, Inc.