עברית

Vulnerability Intelligence

CVE-2026-4878

High 7.0

Published
Last modified
NVD status
Modified

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.

Affected products

libcap_project: libcap; redhat: openshift container platform; redhat: enterprise linux

References10

Metrics

CVSS 3.1
7.0 HIGH Score source: NVD CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS — exploit probability
0% percentile: 11 · as of 12 November 2026
CWE
CWE-367

Could this be exploited in your environment?

A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.