CVE-2026-4878
6.7 MEDIUMA flaw was found in libcap
Published: 2026-04-09 · Last updated: 2026-06-11
Severity and scoring
- CVSS
- 6.7 MEDIUM
- Vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- CWE
- CWE-367
Affected products
| Vendor | Product |
|---|---|
| libcap_project | enterprise_linux, libcap, openshift_container_platform |
| redhat | enterprise_linux, libcap, openshift_container_platform |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-4878
- [Other]https://access.redhat.com/errata/RHSA-2026:12423
- [Other]https://access.redhat.com/errata/RHSA-2026:12441
- [Other]https://access.redhat.com/errata/RHSA-2026:13285
- [Other]https://access.redhat.com/errata/RHSA-2026:14162
- [Other]https://access.redhat.com/errata/RHSA-2026:14937
- [Other]https://access.redhat.com/errata/RHSA-2026:19130
- [Other]https://access.redhat.com/errata/RHSA-2026:19346
- [Other]https://access.redhat.com/errata/RHSA-2026:19456
- [Other]https://access.redhat.com/errata/RHSA-2026:19458
- [Other]https://access.redhat.com/errata/RHSA-2026:20595
- [Other]https://access.redhat.com/errata/RHSA-2026:21254
- [Other]https://access.redhat.com/errata/RHSA-2026:21275
- [Other]https://access.redhat.com/errata/RHSA-2026:22634
- [Other]https://access.redhat.com/errata/RHSA-2026:22957
- [Other]https://access.redhat.com/errata/RHSA-2026:23233
- [Other]https://access.redhat.com/errata/RHSA-2026:23245
- [Other]https://access.redhat.com/errata/RHSA-2026:24346
- [Other]https://access.redhat.com/errata/RHSA-2026:25096
- [Vendor advisory]https://access.redhat.com/errata/RHSA-2026:7473
- [Vendor advisory]https://access.redhat.com/security/cve/CVE-2026-4878
- [Other]https://bugzilla.redhat.com/show_bug.cgi?id=2447554
- [Vendor advisory]https://bugzilla.redhat.com/show_bug.cgi?id=2451615
- [Other]http://www.openwall.com/lists/oss-security/2026/04/07/14
- [Other]http://www.openwall.com/lists/oss-security/2026/04/07/4
- [Other]http://www.openwall.com/lists/oss-security/2026/04/08/9
- [Exploit reference]http://www.openwall.com/lists/oss-security/2026/04/09/5
- [Exploit reference]http://www.openwall.com/lists/oss-security/2026/04/09/6
Related CVEs
Same vendor
- CVE-2026-1767 — A flaw was found in the GNOME localsearch (previously known as tracker-miners) MP3 Extractor `tracker-extract-mp3` component (5.6 MEDIUM)
- CVE-2026-1766 — A flaw was found in GNOME localsearch (previously known as tracker-miners) MP3 Extractor, specifically within the tracker-extract-mp3 com... (5.6 MEDIUM)
- CVE-2026-11793 — A stack buffer overflow flaw was found in 389 Directory Server (4.9 MEDIUM)
- CVE-2026-11790 — A flaw was found in 389 Directory Server (4.9 MEDIUM)
- CVE-2026-11789 — A flaw was found in 389 Directory Server (4.9 MEDIUM)
Same CWE
- CVE-2026-54228 — A time-of-check time-of-use (TOCTOU) race condition was found in the abrt-dbus D-Bus service's SetElement method (7.8 HIGH)
- CVE-2026-53838 — OpenClaw before 2026.5.27 contains a state mutation vulnerability in node pairing reconnection that allows paired nodes to confuse approv... (9.8 CRITICAL)
- CVE-2026-53831 — OpenClaw before 2026.5.18 contains a policy enforcement vulnerability in system.run safe-bin allowlist validation that allows shell expan... (8.3 HIGH)
- CVE-2026-53822 — OpenClaw before 2026.5.18 contains a command injection vulnerability where shell wrapper argv could change between approval and execution (8.8 HIGH)
- CVE-2026-54055 — Kitty is a cross-platform GPU based terminal (5.0 MEDIUM)