Ad

CVE-2026-4878

MEDIUM CVSS 3.1: 6.7 EPSS 0.00%
Updated Apr 09, 2026
libcap
Parameter Value
CVSS 6.7 (MEDIUM)
Type CWE-367 (Time-of-check Time-of-use (TOCTOU))
Vendor libcap
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1