CVE-2026-4878

Medium

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.

SeverityMedium
CVSS6.7
Exploit probability—
ProductLibcap
PublishedApr 9, 2026
First seenApr 9, 2026
Weakness typeCWE-367CWE-367

How to fix

Affected products

ProductAffected versionsFixed in
libcap_project libcapNo range specified—
redhat openshift_container_platform4.0—
redhat enterprise_linux8.0, 9.0, 10.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.