Skip to main content
VulnerabilityPublished Updated

CVE-2026-4878: Libcap2 · A flaw was found in libcap

Affects libcap2Source GCVE Database

0
Compare
Authoritative record:CVE-2026-4878· Medium 6.7

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

CVSS 3.1 base score
6.7Medium
How severe the flaw is on the 0–10 CVSS scale.

Sources agree

CVSS scores by source
CNA (redhat)CVSS 3.16.7
ADP (redhat-SADP)CVSS 3.16.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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Ubuntu 25.10libcap2pkg:deb/ubuntu/libcap2?arch=source&distro=questingOther threatsAffected
  • <1:2.75-7ubuntu2.2
Fixed in
  • 1:2.75-7ubuntu2.2
Ubuntu 24.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=nobleOther threatsAffected
  • <1:2.66-5ubuntu2.4
Fixed in
  • 1:2.66-5ubuntu2.4
Ubuntu 22.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=jammyOther threatsAffected
  • <1:2.44-1ubuntu0.22.04.3
Fixed in
  • 1:2.44-1ubuntu0.22.04.3
Ubuntu Pro 20.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=esm-infra/focalOther threatsAffected
  • <1:2.32-1ubuntu0.2+esm1
Fixed in
  • 1:2.32-1ubuntu0.2+esm1
Ubuntu Pro 18.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <1:2.25-1.2ubuntu0.1~esm2
Fixed in
  • 1:2.25-1.2ubuntu0.1~esm2
Ubuntu Pro 16.04 LTSlibcap2pkg:deb/ubuntu/libcap2?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • <1:2.24-12ubuntu0.1~esm2
Fixed in
  • 1:2.24-12ubuntu0.1~esm2

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

Community reviews

Loading reviews…