Skip to main content
CVE Radar
MEDIUM

CVE-2026-4878

CVE-2026-4878 — Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()

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.

Published Updated Sources: cvelistV5, redhat

Triage

Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.

Exploitation

Unreported

no source claims exploitation

EPSS

<1%

chance of exploitation in 30 days

Affects

Red Hat

34 products listed

CVSS base

6.7

MEDIUM

CISA SSVC assessment

Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.

CISA

Exploitation

None

none · proof-of-concept · active

Automatable

No

can an attacker script all four kill-chain steps

Technical impact

Total

partial · total control of the vulnerable component

Affected scope

The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.

Vendors (1)

Products (34)

red hat enterprise linux 10red hat enterprise linux 10 0 extended update supportred hat enterprise linux 8red hat enterprise linux 8 6 advanced mission critical update supportred hat enterprise linux 8 6 extended update support long life add onred hat enterprise linux 8 8 telecommunications update servicered hat enterprise linux 8 8 update services for sap solutionsred hat enterprise linux 9red hat enterprise linux 9 2 update services for sap solutionsred hat enterprise linux 9 4 extended update supportred hat enterprise linux 9 6 extended update supportred hat openshift container platform 4 12red hat openshift container platform 4 13red hat openshift container platform 4 14red hat openshift container platform 4 15red hat openshift container platform 4 16red hat openshift container platform 4 17red hat openshift container platform 4 18red hat openshift container platform 4 19cert manager support for red hat openshift release 1 17cert manager support for red hat openshift release 1 18cert manager support for red hat openshift release 1 20cost management 4red hat ai inference server 3 2red hat ai inference server 3 3red hat discovery 2red hat hardened imagesred hat insights proxy 1 5red hat openshift ai 3 4red hat openshift distributed tracing 3 9 3red hat update infrastructure 5red hat enterprise linux 6red hat enterprise linux 7red hat openshift container platform 4

Every base score collected

Sources score independently and disagree; each row says who scored it and under which version.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
6.7CVSS 3.1MEDIUMn/an/acvelistV5

Weakness & attack patterns

  • CWE-367

References

25 on the record

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

  • Red Hatevery CVE for this vendor
  • CWE-367other pages naming this weakness

Not in any source we poll

Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.

  • No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
  • No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
  • No exploit packet captures, log samples, or incident case IDs supplied.