{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2026-4878 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-4878 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 9 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-4878 and fix it if it is affected.\n\nWhat it is: CVE-2026-4878 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 9 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-4878 in the wild and no public exploit code.\n\nAffected product: Redhat Enterprise Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-4878/ (Markdown: https://insights.sbomify.com/CVE-2026-4878/index.md)","id":"CVE-2026-4878","markdown":"https://insights.sbomify.com/CVE-2026-4878/index.md","name":"CVE-2026-4878","record":{"aliases":["ALPINE-CVE-2026-4878","ALSA-2026:12423","ALSA-2026:12441","ALSA-2026:13285","ALSA-2026:19130","ALSA-2026:19346","AZL-82425","BELL-CVE-2026-4878","CLEANSTART-2026-QJ20877","CLSA-2026-1777941636","CLSA-2026-1777941808","CLSA-2026-1777944214","CLSA-2026-1778081089","CLSA-2026-1778599539","CLSA-2026-1778599722","CLSA-2026-1778662651","CLSA-2026-1792443899","DEBIAN-CVE-2026-4878","ECHO-beb9-6eea-f967","MGASA-2026-0221","MINI-2gpr-cw8q-9r9p","OESA-2026-1929","RHSA-2026:12423","RHSA-2026:12441","RHSA-2026:13285","RHSA-2026:19130","RHSA-2026:19346","RHSA-2026:19456","RHSA-2026:19458","RHSA-2026:20595","RHSA-2026:21254","RHSA-2026:22957","RHSA-2026:24346","RHSA-2026:7473","RLSA-2026:12423","RLSA-2026:12441","RLSA-2026:13285","RLSA-2026:19130","RLSA-2026:19346","ROOT-OS-ALPINE-315-CVE-2026-4878","SUSE-SU-2026:1432-1","SUSE-SU-2026:1433-1","SUSE-SU-2026:21243-1","SUSE-SU-2026:21257-1","SUSE-SU-2026:21274-1","SUSE-SU-2026:21373-1","UBUNTU-CVE-2026-4878","USN-8193-1","USN-8193-2","openSUSE-SU-2026:10536-1","openSUSE-SU-2026:20613-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux capability library","requires_auth":"low_privilege","summary":"Local attackers can exploit a race condition in libcap to inject capabilities into executables, leading to privilege escalation.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"libcap","vendor":"libcap_project"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"openshift_container_platform","vendor":"redhat"}],"cvss":{"score":6.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"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.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux_eus:10.0","Red Hat:hummingbird:1","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_e4s:9.2::baseos","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.4::baseos","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::baseos","Red Hat:rhel_eus_long_life:8.6::baseos","Red Hat:rhel_tus:8.8::baseos","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP6-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP6","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","SUSE:Linux Micro 6.2","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()","id":"CVE-2026-4878","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux","redhat:openshift_container_platform"],"type":"race_condition","year":"2026"},"n_packages":101,"n_references":45,"next":{"headline":"Missing Authorization in GitLab","id":"CVE-2026-4879"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["2.69-7.el10_1.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/almalinux/libcap","source":"ALSA-2026:12423"},{"ecosystem":"AlmaLinux:10","fixed":["2.69-7.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/almalinux/libcap","source":"ALSA-2026:19130"},{"ecosystem":"AlmaLinux:10","fixed":["2.69-7.el10_1.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/almalinux/libcap-devel","source":"ALSA-2026:12423"},{"ecosystem":"AlmaLinux:10","fixed":["2.69-7.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/almalinux/libcap-devel","source":"ALSA-2026:19130"},{"ecosystem":"AlmaLinux:8","fixed":["2.48-6.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/almalinux/libcap","source":"ALSA-2026:13285"},{"ecosystem":"AlmaLinux:8","fixed":["2.48-6.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/almalinux/libcap-devel","source":"ALSA-2026:13285"},{"ecosystem":"AlmaLinux:9","fixed":["2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/almalinux/libcap","source":"ALSA-2026:12441"},{"ecosystem":"AlmaLinux:9","fixed":["2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/almalinux/libcap","source":"ALSA-2026:19346"},{"ecosystem":"AlmaLinux:9","fixed":["2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/almalinux/libcap-devel","source":"ALSA-2026:12441"},{"ecosystem":"AlmaLinux:9","fixed":["2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/almalinux/libcap-devel","source":"ALSA-2026:19346"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:2.69-7.el10_1.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/redhat/libcap","source":"RHSA-2026:12423"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:2.69-7.el10_1.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:12423"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:2.69-7.el10_1.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:12423"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:2.69-7.el10_1.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/redhat/libcap-devel","source":"RHSA-2026:12423"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.69-7.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/redhat/libcap","source":"RHSA-2026:19130"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.69-7.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:19130"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.69-7.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:19130"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:2.69-7.el10_2.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/redhat/libcap-devel","source":"RHSA-2026:19130"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.48-6.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/redhat/libcap","source":"RHSA-2026:13285"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.48-6.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:13285"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.48-6.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:13285"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.48-6.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/redhat/libcap-devel","source":"RHSA-2026:13285"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:12441"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:19346"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:12441"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:19346"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/redhat/libcap-devel","source":"RHSA-2026:12441"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/redhat/libcap-devel","source":"RHSA-2026:19346"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/redhat/libcap","source":"RHSA-2026:12441"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/redhat/libcap","source":"RHSA-2026:19346"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:12441"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:19346"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.48-10.el9_7.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:12441"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.48-10.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:19346"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.69-7.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/redhat/libcap","source":"RHSA-2026:19456"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.69-7.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debuginfo","purl":"pkg:rpm/redhat/libcap-debuginfo","source":"RHSA-2026:19456"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.69-7.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"libcap-debugsource","purl":"pkg:rpm/redhat/libcap-debugsource","source":"RHSA-2026:19456"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:2.69-7.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/redhat/libcap-devel","source":"RHSA-2026:19456"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.78-1.1.hum1"],"introduced":["0"],"last_affected":[],"package":"libcap","purl":"pkg:rpm/redhat/libcap","source":"RHSA-2026:7473"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.78-1.1.hum1"],"introduced":["0"],"last_affected":[],"package":"libcap-devel","purl":"pkg:rpm/redhat/libcap-devel","source":"RHSA-2026:7473"}],"prev":{"headline":"itsourcecode Payroll Management System index.php cross site scripting","id":"CVE-2026-4877"},"products":["Cert Manager support for Red Hat OpenShift release 1.17","Cert Manager support for Red Hat OpenShift release 1.18","Cert Manager support for Red Hat OpenShift release 1.20","Cost Management 4","Red Hat AI Inference Server 3.2","Red Hat AI Inference Server 3.3","Red Hat Discovery 2","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 10.0 Extended Update Support","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On","Red Hat Enterprise Linux 8.8 Telecommunications Update Service","Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.4 Extended Update Support","Red Hat Enterprise Linux 9.6 Extended Update Support","Red Hat Hardened Images","Red Hat Insights proxy 1.5","Red Hat OpenShift AI 3.4","Red Hat OpenShift Container Platform 4","Red Hat OpenShift Container Platform 4.12","Red Hat OpenShift Container Platform 4.13","Red Hat OpenShift Container Platform 4.14","Red Hat OpenShift Container Platform 4.15","Red Hat OpenShift Container Platform 4.16","Red Hat OpenShift Container Platform 4.17","Red Hat OpenShift Container Platform 4.18","Red Hat OpenShift Container Platform 4.19","Red Hat OpenShift distributed tracing 3.9.3","Red Hat Update Infrastructure 5"],"published":"2026-04-09","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-14","vendors":["Red Hat"]},"summary":"Local attackers can exploit a race condition in libcap to inject capabilities into executables, leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-4878/"}