# CVE-2026-66485: Uncontrolled Memory Allocation in GNU cpio

- Priority: **Routine**
- Reason: Not severe (CVSS 4.6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-10 · Modified: 2026-08-10
- Aliases: UBUNTU-CVE-2026-66485, DEBIAN-CVE-2026-66485, RHSA-2026:82414
- Record: https://cvemate.com/vulnerability/CVE-2026-66485 · JSON: https://cvemate.com/vulnerability/CVE-2026-66485/json

## Description

```text
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
```

## Signals

- CVSS: 4.6 medium (v4.0, CVE.org) 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
- EPSS: 0.132%, percentile 2.957%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian cpio (Debian): All versions (No fix recorded) \| \< 2.15+dfsg-3
- ubuntu cpio (Ubuntu): \< 2.11+dfsg-1ubuntu1.2+esm3 \| \< 2.11+dfsg-5ubuntu1.1+esm2 \| \< 2.12+dfsg-6ubuntu0.18.04.4+esm1 \| \< 2.13+dfsg-2ubuntu0.4+esm1 \| \< 2.13+dfsg-7ubuntu0.2 \| \< 2.15+dfsg-1ubuntu2.1 \| \< 2.15+dfsg-2.1ubuntu0.1
- gnu cpio: ≤ 2.15
- redhat cpio (Red Hat): \< 0:2.15-10.3.hum1

## References

- <https://cert.pl/en/posts/2026/08/CVE-2026-66484>
- <https://git.savannah.gnu.org/cgit/cpio.git>
- <https://ubuntu.com/security/CVE-2026-66485>
- <https://www.cve.org/CVERecord?id=CVE-2026-66485>
- <https://ubuntu.com/security/notices/USN-8704-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-66485>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-66485>
- <https://access.redhat.com/errata/RHSA-2026:82414>
- <https://access.redhat.com/security/cve/CVE-2026-66485>
- <https://access.redhat.com/security/updates/classification/>
- <https://images.redhat.com/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_82414.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2513083>

---

Data as of 2026-12-05T06:19:32.133Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
