CVE-2026-4878

published 9 Apr 2026 · updated 16 Nov 2026

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

7.7HighCVSS 6.7EPSS 0%2 public exploits

2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatAI Inference Server
Red HatCert Manager support for Red Hat OpenShift
Red HatCost Management
Red HatDiscovery
Red HatEnterprise Linux
Red HatHardened Images
Red HatInsights proxy
Red HatOpenShift AI
Red HatOpenShift Container Platform
Red HatOpenShift distributed tracing
Red HatUpdate Infrastructure
libcap_projectlibcap
redhatenterprise_linux=9.0, =8.0, =10.0
redhatopenshift_container_platform=4.0

Exploit evidence

2 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-4878 severity on Zeptric[![CVE-2026-4878](https://zeptric.io/badge/cve/CVE-2026-4878.svg)](https://zeptric.io/cve/CVE-2026-4878)