๐Ÿ” CVE Alert

CVE-2026-4878

MEDIUM 6.7

Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()

CVSS Score
6.7
EPSS Score
0.0%
EPSS Percentile
1th

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.

CWE CWE-367
Vendor red hat
Product red hat enterprise linux 10
Published Apr 9, 2026
Last Updated Apr 17, 2026
Stay Ahead of the Next One

Get instant alerts for red hat red hat enterprise linux 10

Be the first to know when new medium vulnerabilities affecting red hat red hat enterprise linux 10 are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

Red Hat / Red Hat Enterprise Linux 10
All versions affected
Red Hat / Red Hat Enterprise Linux 6
All versions affected
Red Hat / Red Hat Enterprise Linux 6
All versions affected
Red Hat / Red Hat Enterprise Linux 7
All versions affected
Red Hat / Red Hat Enterprise Linux 7
All versions affected
Red Hat / Red Hat Enterprise Linux 8
All versions affected
Red Hat / Red Hat Enterprise Linux 9
All versions affected
Red Hat / Red Hat Hardened Images
All versions affected
Red Hat / Red Hat OpenShift Container Platform 4
All versions affected

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
access.redhat.com: https://access.redhat.com/security/cve/CVE-2026-4878 bugzilla.redhat.com: https://bugzilla.redhat.com/show_bug.cgi?id=2447554 bugzilla.redhat.com: https://bugzilla.redhat.com/show_bug.cgi?id=2451615 openwall.com: http://www.openwall.com/lists/oss-security/2026/04/07/4 openwall.com: http://www.openwall.com/lists/oss-security/2026/04/07/14 openwall.com: http://www.openwall.com/lists/oss-security/2026/04/08/9 openwall.com: http://www.openwall.com/lists/oss-security/2026/04/09/5 openwall.com: http://www.openwall.com/lists/oss-security/2026/04/09/6

Credits

Red Hat would like to thank Ali Raza for reporting this issue.