cve.bz

CVE-2026-4878

7.0 highExploit referenceEPSS 0.2%Fix available

High (7.0). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:2.69-7.el10_1.1
  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:2.69-7.el10_2.1
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support: fixed in 0:2.69-7.el10_0.1
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:2.48-6.el8_10.1
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:2.48-4.el8_6.1
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On: fixed in 0:2.48-4.el8_6.1
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service: fixed in 0:2.48-5.el8_8.1
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions: fixed in 0:2.48-5.el8_8.1
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita: fixed package versions per release
  • Vendor advisory: https://access.redhat.com/errata/RHSA-2026:7473
  • Vendor advisory: https://access.redhat.com/security/cve/CVE-2026-4878
  • Vendor advisory: https://bugzilla.redhat.com/show_bug.cgi?id=2451615

Ask an AI about this CVE

Show the promptExplain CVE-2026-4878 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-4878?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-4878?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-4878 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-4878

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-4878](https://cve.bz/cve/badge/CVE-2026-4878.svg)](https://cve.bz/cve/CVE-2026-4878)

HTML:

<a href="https://cve.bz/cve/CVE-2026-4878"><img src="https://cve.bz/cve/badge/CVE-2026-4878.svg" alt="CVE-2026-4878"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:2.69-7.el10_1.1
Red Hat Enterprise Linux 100:2.69-7.el10_2.1
Red Hat Enterprise Linux 10.0 Extended Update Support0:2.69-7.el10_0.1
Red Hat Enterprise Linux 80:2.48-6.el8_10.1
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:2.48-4.el8_6.1
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On0:2.48-4.el8_6.1
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:2.48-5.el8_8.1
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:2.48-5.el8_8.1
Red Hat Enterprise Linux 90:2.48-10.el9_7.1
Red Hat Enterprise Linux 90:2.48-10.el9_8.1
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:2.48-9.el9_2.1
Red Hat Enterprise Linux 9.4 Extended Update Support0:2.48-9.el9_4.1
Red Hat Enterprise Linux 9.6 Extended Update Support0:2.48-9.el9_6.1
Red Hat OpenShift Container Platform 4.12412.86.202608241157-0
Red Hat OpenShift Container Platform 4.13413.92.202606160406-0
Red Hat OpenShift Container Platform 4.14414.92.202606231112-0
Red Hat OpenShift Container Platform 4.15415.92.202606030318-0
Red Hat OpenShift Container Platform 4.16416.94.202606051757-0
Red Hat OpenShift Container Platform 4.17417.94.202606250942-0
Red Hat OpenShift Container Platform 4.18418.94.202606051320-0
Red Hat OpenShift Container Platform 4.194.19.9.6.202606031700-0
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791371080
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791371069
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791788287
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791970484
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791459707
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791459711
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791459759
Red Hat Cert Manager support for Red Hat OpenShift release 1.181789029076
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791966259
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790598593
Red Hat Cost Management 41780946239
Red Hat Cost Management 41783539156
Red Hat AI Inference Server 3.21780681984
Red Hat AI Inference Server 3.31782352950
Red Hat AI Inference Server 3.31782352919
Red Hat AI Inference Server 3.31782353093
Red Hat AI Inference Server 3.31782352847
Red Hat Discovery 21778101579
Red Hat Discovery 21778156756
Red Hat Discovery 21782159791
Red Hat Discovery 21782166952
Red Hat Hardened Images2.78-1.1.hum1
Red Hat Insights proxy 1.51780420428
Red Hat OpenShift AI 3.41790703542
Red Hat OpenShift distributed tracing 3.9.31778056267
Red Hat OpenShift distributed tracing 3.9.31778056233
Red Hat OpenShift distributed tracing 3.9.31778056245
Red Hat Update Infrastructure 51779798159
Red Hat Update Infrastructure 51779798164
Red Hat Update Infrastructure 51779798165
Red Hat Update Infrastructure 51779798222
Red Hat Update Infrastructure 51787241211
Red Hat Update Infrastructure 51787135742
Red Hat Update Infrastructure 51787241260

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libcap21:2.66-4+deb12u3DEBIAN-CVE-2026-4878
Debian13libcap21:2.75-10+deb13u1DEBIAN-CVE-2026-4878
Debian14libcap21:2.78-1DEBIAN-CVE-2026-4878
Ubuntu22.04:LTSlibcap21:2.44-1ubuntu0.22.04.3UBUNTU-CVE-2026-4878 USN-8193-1
Ubuntu24.04:LTSlibcap21:2.66-5ubuntu2.4UBUNTU-CVE-2026-4878 USN-8193-1
Ubuntu25.10libcap21:2.75-7ubuntu2.2UBUNTU-CVE-2026-4878 USN-8193-1
UbuntuPro:14.04:LTSlibcap21:2.24-0ubuntu2+esm2UBUNTU-CVE-2026-4878 USN-8193-2
UbuntuPro:16.04:LTSlibcap21:2.24-12ubuntu0.1~esm2UBUNTU-CVE-2026-4878 USN-8193-2
UbuntuPro:18.04:LTSlibcap21:2.25-1.2ubuntu0.1~esm2UBUNTU-CVE-2026-4878 USN-8193-2
UbuntuPro:20.04:LTSlibcap21:2.32-1ubuntu0.2+esm1UBUNTU-CVE-2026-4878 USN-8193-2
Red Hatenterprise_linux:8::baseoslibcap, libcap-devel, libcap-debuginfo and 1 more0:2.48-6.el8_10.1RHSA-2026:13285
Red Hatenterprise_linux:9::appstreamlibcap-devel, libcap-debuginfo, libcap-debugsource0:2.48-10.el9_7.1RHSA-2026:12441
Red Hatenterprise_linux:9::appstreamlibcap-devel, libcap-debuginfo, libcap-debugsource0:2.48-10.el9_8.1RHSA-2026:19346
Red Hatenterprise_linux:9::baseoslibcap, libcap-debuginfo, libcap-debugsource0:2.48-10.el9_7.1RHSA-2026:12441
Red Hatenterprise_linux:9::baseoslibcap, libcap-debuginfo, libcap-debugsource0:2.48-10.el9_8.1RHSA-2026:19346
Red Hatenterprise_linux:10.1libcap, libcap-devel, libcap-debuginfo and 1 more0:2.69-7.el10_1.1RHSA-2026:12423
Red Hatenterprise_linux:10.2libcap, libcap-devel, libcap-debuginfo and 1 more0:2.69-7.el10_2.1RHSA-2026:19130
Red Hatenterprise_linux_eus:10.0libcap, libcap-devel, libcap-debuginfo and 1 more0:2.69-7.el10_0.1RHSA-2026:19456
Red Hathummingbird:1libcap, libcap-devel, libcap-static0:2.78-1.1.hum1RHSA-2026:7473
Red Hatrhel_aus:8.6::baseos, rhel_eus_long_life:8.6::baseoslibcap, libcap-devel, libcap-debuginfo and 1 more0:2.48-4.el8_6.1RHSA-2026:24346
Red Hatrhel_e4s:8.8::baseos, rhel_tus:8.8::baseoslibcap, libcap-devel, libcap-debuginfo and 1 more0:2.48-5.el8_8.1RHSA-2026:22957
Red Hatrhel_e4s:9.2::appstreamlibcap-devel, libcap-debuginfo, libcap-debugsource0:2.48-9.el9_2.1RHSA-2026:21254
5 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 morelibcap2.63-150400.3.6.1SUSE-SU-2026:1432-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libcap2.26-14.12.1SUSE-SU-2026:1433-1
SUSELinux Micro 6.0libcap2.69-3.1SUSE-SU-2026:21243-1
SUSELinux Micro 6.1libcap2.69-slfo.1.1_2.1SUSE-SU-2026:21257-1
SUSELinux Micro 6.2libcap2.73-160000.3.1SUSE-SU-2026:21274-1
openSUSELeap 16.0libcap2.73-160000.3.1openSUSE-SU-2026:20613-1
openSUSETumbleweedlibcap2.78-1.1openSUSE-SU-2026:10536-1
AlmaLinux8libcap, libcap-devel2.48-6.el8_10.1ALSA-2026:13285
AlmaLinux9libcap, libcap-devel2.48-10.el9_7.1ALSA-2026:12441
AlmaLinux9libcap, libcap-devel2.48-10.el9_8.1ALSA-2026:19346
AlmaLinux10libcap, libcap-devel2.69-7.el10_1.1ALSA-2026:12423
AlmaLinux10libcap, libcap-devel2.69-7.el10_2.1ALSA-2026:19130
Rocky Linux8libcap0:2.48-6.el8_10.1RLSA-2026:13285
Rocky Linux9libcap0:2.48-10.el9_7.1RLSA-2026:12441 RLSA-2026:19346
Rocky Linux10libcap0:2.69-7.el10_1.1RLSA-2026:12423 RLSA-2026:19130
Alpinev3.20, v3.21, v3.22 and 2 morelibcap2.78-r0ALPINE-CVE-2026-4878
Azure Linux3libcap2.69-14AZL-82425
Alpaquita23libcap2.66-r2BELL-CVE-2026-4878
Alpaquita25, streamlibcap2.78-r0BELL-CVE-2026-4878

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important flaw. A Time-of-Check-to-Time-of-Use (TOCTOU) race condition in libcap's cap_set_file() allows a local unprivileged user to escalate privileges. An attacker with write access to a parent directory can exploit a narrow window during file capability updates to redirect capabilities to an attacker-controlled file. This can lead to the injection of elevated privileges into an unintended executable when privileged processes, such as setcap or container tooling, invoke cap_set_file() on attacker-influenced paths.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libcap-0:2.69-7.el10_1.1Fixed 2026-04-30RHSA-2026:12423
Red Hat Enterprise Linux 10libcap-0:2.69-7.el10_2.1Fixed 2026-05-19RHSA-2026:19130
Red Hat Enterprise Linux 10.0 Extended Update Supportlibcap-0:2.69-7.el10_0.1Fixed 2026-05-20RHSA-2026:19456
Red Hat Enterprise Linux 8libcap-0:2.48-6.el8_10.1Fixed 2026-05-04RHSA-2026:13285
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibcap-0:2.48-4.el8_6.1Fixed 2026-06-08RHSA-2026:24346
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onlibcap-0:2.48-4.el8_6.1Fixed 2026-06-08RHSA-2026:24346
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicelibcap-0:2.48-5.el8_8.1Fixed 2026-06-03RHSA-2026:22957
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionslibcap-0:2.48-5.el8_8.1Fixed 2026-06-03RHSA-2026:22957
Red Hat Enterprise Linux 9libcap-0:2.48-10.el9_7.1Fixed 2026-04-30RHSA-2026:12441
Red Hat Enterprise Linux 9libcap-0:2.48-10.el9_8.1Fixed 2026-05-19RHSA-2026:19346
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionslibcap-0:2.48-9.el9_2.1Fixed 2026-05-27RHSA-2026:21254
Red Hat Enterprise Linux 9.4 Extended Update Supportlibcap-0:2.48-9.el9_4.1Fixed 2026-05-26RHSA-2026:20595
Red Hat Enterprise Linux 9.6 Extended Update Supportlibcap-0:2.48-9.el9_6.1Fixed 2026-05-20RHSA-2026:19458
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202608241157-0Fixed 2026-09-03RHSA-2026:59831
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202606160406-0Fixed 2026-06-25RHSA-2026:26542
Red Hat Enterprise Linux 6compat-libcap1Out of support scope
Red Hat Enterprise Linux 6libcapOut of support scope
Red Hat Enterprise Linux 7compat-libcap1Out of support scope
Red Hat Enterprise Linux 7libcapOut of support scope
Red Hat OpenShift Container Platform 4openshift4/ose-hypershift-rhel9Under investigation
40 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-4878.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON