Live threats

All CVEs / Libcap Project

CVE-2026-4878Libcap Project Libcap

High 7.0

Priority
42
CVSS 3.1
7.0
EPSS
—
Auth required
Yes
Published
Apr 9, 2026
Updated
Nov 4, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-367
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libcap.

Affected products (CPE)

VendorProductVersions
libcap_projectlibcapall
redhatopenshift_container_platform4.0
redhatenterprise_linux8.0
redhatenterprise_linux9.0
redhatenterprise_linux10.0

Official advisories

Also: Red Hat (+9), SUSE (+4)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.