7

CVE-2026-4878: Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()

Modified
AliasesALPINE-CVE-2026-4878MGASA-2026-0221SUSE-SU-2026:1432-1
Published 09-04-2026Last modified 04-11-2026

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.

Priority
Routine

Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.0/10
010
High · v3.1 (NVD)
EPSS score
0.21%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2reference

Timeline

  1. 09-04-2026
    PublishedVulnerability first disclosed.
  2. 04-11-2026
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

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
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 links
Show all 86 references