Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-4878
VULNERABILITY

CVE-2026-4878

Common Vulnerabilities and Exposures record

MEDIUM

Summary

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.

Risk

CVSS
6.7
Severity
MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Timeline

Published
Apr 9, 2026 16:16
Modified
Nov 4, 2026 23:17
Last observed
Nov 4, 2026 19:00

CWE

CWE-367

Affected product identifiers

cpe:2.3:a:libcap_project:libcap:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*

References