CVE-2026-4878
Last modified
CVE-2026-4878 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Libcap Project | Libcap | All versions |
| Redhat | Openshift Container Platform | 4.0 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux | 9.0 |
| Redhat | Enterprise Linux | 10.0 |
References
- https://access.redhat.com/errata/RHSA-2026:7473Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-4878Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2447554Permissions Required
- https://bugzilla.redhat.com/show_bug.cgi?id=2451615Issue Tracking, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/04/07/14Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/07/4Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/08/9Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/09/5Exploit, Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/09/6Exploit, Mailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-4878?
How severe is CVE-2026-4878?
How do I fix CVE-2026-4878?
Are you affected by CVE-2026-4878?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
