CVE-2026-4878
Last modified
CVE-2026-4878 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Libcap Project | Libcap | All versions |
| Redhat | Openshift Container Platform | 4.0 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux | 9.0 |
| Redhat | Enterprise Linux | 10.0 |
References
- https://access.redhat.com/errata/RHSA-2026:7473Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-4878Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2447554Permissions Required
- https://bugzilla.redhat.com/show_bug.cgi?id=2451615Issue Tracking, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/04/07/14Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/07/4Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/08/9Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/09/5Exploit, Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2026/04/09/6Exploit, Mailing List, Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:7473Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-4878Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2451615Issue Tracking, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-4878?
How severe is CVE-2026-4878?
How do I fix CVE-2026-4878?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-48774ProxySQL is a proxy for MySQL and its forks, as well as Post…7.5
- CVE-2026-48775LangGraph SQLite Checkpoint is an implementation of LangGrap…6.8
- CVE-2026-48776LangGraph Python SDK is used to connect to running LangGraph…9.1
- CVE-2026-48777FileBrowser Quantum is a free, self-hosted, web-based file m…9.3
- CVE-2026-48778Notepad++ is a free and open-source source code editor. Prio…7.8
- CVE-2026-48779ws is an open source WebSocket client and server for Node.js…7.5
- CVE-2026-48780Forem is open source software for building communities. Prio…8.2
- CVE-2026-48781Postiz is an AI social media scheduling tool. In versions pr…9.9
- CVE-2026-48782Pydantic AI is a Python agent framework for building applica…6.8
- CVE-2026-48783Postiz is an AI social media scheduling tool. Versions prior…4.8
- CVE-2026-48784Symfony is a PHP framework for web and console applications …6.1
- CVE-2026-48787gin-vue-admin is an AI-assisted basic development platform. …7.4
Are you affected by CVE-2026-4878?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
