Skip to main content
VulnerabilityPublished Updated

CVE-2026-66485: GNU cpio is vulnerable to an uncontrolled memory allocation in the make_path function at src/makepath.c

Affects cpioSource GCVE Database

0
Compare
Authoritative record:CVE-2026-66485· Medium 4.6

Not known to be exploited · CVSS 4.6 Medium · fixed in 2.11+dfsg-1ubuntu1.2+esm3 : update cpio when convenient.

Data as of 24 Nov 2026, 20:56 UTC

CVSS 4.0 base score
4.6Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.11+dfsg-1ubuntu1.2+esm3, 2.11+dfsg-5ubuntu1.1+esm2, 2.12+dfsg-6ubuntu0.18.04.4+esm1 +4
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Aug 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 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTScpiopkg:deb/ubuntu/cpio?arch=source&distro=resoluteOther threatsAffected
  • <2.15+dfsg-2.1ubuntu0.1
  • =2.15+dfsg-2ubuntu1
Fixed in
  • 2.15+dfsg-2.1ubuntu0.1
Ubuntu 24.04 LTScpiopkg:deb/ubuntu/cpio?arch=source&distro=nobleOther threatsAffected
  • <2.15+dfsg-1ubuntu2.1
Fixed in
  • 2.15+dfsg-1ubuntu2.1
Ubuntu 22.04 LTScpiopkg:deb/ubuntu/cpio?arch=source&distro=jammyOther threatsAffected
  • <2.13+dfsg-7ubuntu0.2
Fixed in
  • 2.13+dfsg-7ubuntu0.2
Ubuntu Pro 20.04 LTScpiopkg:deb/ubuntu/cpio?arch=source&distro=esm-infra/focalOther threatsAffected
  • <2.13+dfsg-2ubuntu0.4+esm1
Fixed in
  • 2.13+dfsg-2ubuntu0.4+esm1
Ubuntu Pro 18.04 LTScpiopkg:deb/ubuntu/cpio?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <2.12+dfsg-6ubuntu0.18.04.4+esm1
Fixed in
  • 2.12+dfsg-6ubuntu0.18.04.4+esm1
Ubuntu Pro 16.04 LTScpiopkg:deb/ubuntu/cpio?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • <2.11+dfsg-5ubuntu1.1+esm2
Fixed in
  • 2.11+dfsg-5ubuntu1.1+esm2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

GNU cpio is vulnerable to an uncontrolled memory allocation in the make_path function at src/makepath.c. The function uses alloca to allocate stack memory based on the length of argpath, which is derived from an archive-controlled pathname during extraction. A malicious cpio archive containing a sufficiently long nested pathname causes an unbounded stack allocation, resulting in a stack overflow and crash of the cpio process. An attacker who can supply a crafted cpio archive to a victim who extracts it can cause a denial of service. This issue has been fixed in commit 3cd514031371d8aeeaf2048aa10103e02831aaa9

References

Community reviews

Loading reviews…