Vulnerability in Libcap_project Libcap

CVE-2026-4878

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 cap…

Vulnerability class: TOCTOU (Time-of-Check to Time-of-Use)

EPSS: 0.000 (2.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-4878?
CVE-2026-4878 is a medium-severity vulnerability in Libcap_project Libcap, classified under Time-of-check Time-of-use (TOCTOU) Race Condition. CVSS score: 6.7/10. Published 2026-04-09.
How severe is CVE-2026-4878?
Medium severity. CVSS v3 base score is 6.7 out of 10.