CVE-2026-4878: Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()
Vulnerability summary
CVE-2026-4878 is a high (CVSS 7.0) vulnerability in libcap_project libcap. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 12.4% of scored vulnerabilities. 2 public exploits are recorded.
Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 09-04-2026PublishedVulnerability first disclosed.
- 04-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA6.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated6.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.20% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundExploit Reference (openwall.com)
Maturity: unknown
Exploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Suse19 products
- libcap&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 2.63-150400.3.6.1
- libcap&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 2.63-150400.3.6.1
- libcap&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS< 2.63-150400.3.6.1
- libcap&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS< 2.63-150400.3.6.1
- libcap&distro=SUSE Linux Enterprise Micro 5.3< 2.63-150400.3.6.1
Redhat7 products
- enterprise_linux8.0 | 9.0 | 10.0
- openshift_container_platform4.0
- libcap< 0:2.69-7.el10_1.1 | < 0:2.48-10.el9_7.1 | < 0:2.48-6.el8_10.1 | < 0:2.69-7.el10_2.1 | < 0:2.48-10.el9_8.1 | < 0:2.69-7.el10_0.1 | < 0:2.48-9.el9_6.1 | < 0:2.48-9.el9_4.1 | < 0:2.48-9.el9_2.1 | < 0:2.48-5.el8_8.1 | < 0:2.48-4.el8_6.1 | < 0:2.78-1.1.hum1
- libcap-debuginfo< 0:2.69-7.el10_1.1 | < 0:2.48-10.el9_7.1 | < 0:2.48-6.el8_10.1 | < 0:2.69-7.el10_2.1 | < 0:2.48-10.el9_8.1 | < 0:2.69-7.el10_0.1 | < 0:2.48-9.el9_6.1 | < 0:2.48-9.el9_4.1 | < 0:2.48-9.el9_2.1 | < 0:2.48-5.el8_8.1 | < 0:2.48-4.el8_6.1
- libcap-debugsource< 0:2.69-7.el10_1.1 | < 0:2.48-10.el9_7.1 | < 0:2.48-6.el8_10.1 | < 0:2.69-7.el10_2.1 | < 0:2.48-10.el9_8.1 | < 0:2.69-7.el10_0.1 | < 0:2.48-9.el9_6.1 | < 0:2.48-9.el9_4.1 | < 0:2.48-9.el9_2.1 | < 0:2.48-5.el8_8.1 | < 0:2.48-4.el8_6.1
Opensuse2 products
- libcap&distro=openSUSE Leap 16.0< 2.73-160000.3.1
- libcap&distro=openSUSE Tumbleweed< 2.78-1.1
Alpine1 product
- libcap< 2.78-r0
Debian1 product
- libcap2< 1:2.66-4+deb12u3 | < 1:2.75-10+deb13u1 | < 1:2.78-1
Libcap_project1 product
- libcapna
Mageia1 product
- libcap< 2.52-5.2.mga9
Ubuntu1 product
- libcap2< 1:2.24-0ubuntu2+esm2 | < 1:2.24-12ubuntu0.1~esm2 | < 1:2.25-1.2ubuntu0.1~esm2 | < 1:2.32-1ubuntu0.2+esm1 | < 1:2.44-1ubuntu0.22.04.3 | < 1:2.66-5ubuntu2.4 | < 1:2.75-7ubuntu2.2
8 vendors · 33 products
References
86 linksShow all 86 references
- images.redhat.comARTICLE