CVE-2026-4878: Libcap2 · A flaw was found in libcap
Affects libcap2Source GCVE Database
Not known to be exploited · CVSS 6.7 Medium · fixed in 1:2.24-0ubuntu2+esm2 : update libcap2 when convenient.
Data as of 24 Nov 2026, 21:15 UTC
Sources agree
| CNA (redhat) | CVSS 3.1 | 6.7 |
|---|---|---|
| ADP (redhat-SADP) | CVSS 3.1 | 6.7 |
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1:2.24-0ubuntu2+esm2, 1:2.24-12ubuntu0.1~esm2, 1:2.25-1.2ubuntu0.1~esm2 +4
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 9 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10libcap2pkg:deb/ubuntu/libcap2?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=esm-infra-legacy/xenialOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-4878 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-4878 (opens in a new tab)
- sites.google.com/site/fullycapable/release-notes-for-libcap (opens in a new tab)
- github.com/AndrewGMorgan/libcap_mirror/security/advisories/GHSA-f78v-p5hx-m7hh (opens in a new tab)
- ubuntu.com/security/notices/USN-8193-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8193-2 (opens in a new tab)