High severity · published Apr 9, 2026
CVE-2026-4878
Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()
7.0
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 10% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CM
Cert Manager support for Red Hat OpenShift release 1.17 · Red Hat
All versions, or not specified · source: vendor
CM
Cert Manager support for Red Hat OpenShift release 1.18 · Red Hat
All versions, or not specified · source: vendor
CM
Cert Manager support for Red Hat OpenShift release 1.20 · Red Hat
All versions, or not specified · source: vendor
CM
Cost Management 4 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat AI Inference Server 3.2 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat AI Inference Server 3.3 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat Discovery 2 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat Enterprise Linux 10 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat Enterprise Linux 10.0 Extended Update Support · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat Enterprise Linux 6 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat Enterprise Linux 7 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat Enterprise Linux 8 · Red Hat
All versions, or not specified · source: vendor, CISA
Affected product
CM
Cert Manager support for Red Hat OpenShift release 1.17
Red Hat
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-4878
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-4878
vendor-advisory
https://access.redhat.com/errata/RHSA-2026:12423
vendor-advisory
https://access.redhat.com/errata/RHSA-2026:12441
vendor-advisory
https://access.redhat.com/errata/RHSA-2026:13285
vendor-advisory
https://access.redhat.com/errata/RHSA-2026:14162
vendor-advisory
https://access.redhat.com/errata/RHSA-2026:14937
vendor-advisory
https://access.redhat.com/errata/RHSA-2026:19130
More from Cert Manager support for Red Hat OpenShift release 1.17
9.8
CVE-2026-42010
Gnutls: gnutls: authentication bypass via nul character in username
9.8
CVE-2025-14087
Glib: glib: buffer underflow in gvariant parser leads to heap corruption
9.1
CVE-2026-58016
Glib: integer underflow in gio/gdbusintrospection.c via "g_dbus_node_info_new_for_xml"
9.1
CVE-2026-33845
Gnutls: gnutls: denial of service via dtls zero-length fragment
8.6
CVE-2026-58014
Glib: off-by-one error in glib/gkeyfile.c via "g_key_file_get_locale_string_list"
