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

- Severity: Medium 4.6 (CVSS:4.0, scored by CERT-PL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-10T10:25:34.337Z
- Modified: 2026-10-24T16:10:00.153Z
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## 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

(As written by CVE List.)

## Affected

- GNU cpio: up to 2.15

## References

- <https://cert.pl/en/posts/2026/08/CVE-2026-66484> (third-party-advisory)
- <https://git.savannah.gnu.org/cgit/cpio.git> (product)

## Sources

- CVE List: [CVE-2026-66485](https://www.cve.org/CVERecord?id=CVE-2026-66485), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-66485](https://nvd.nist.gov/vuln/detail/CVE-2026-66485), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-66485 · Whole record: https://cve.day/CVE-2026-66485.json · Rebuilt by cve.day 2026-11-25T22:59:31.986Z
