GNU cpio Flaws Enable Path Traversal, DoS, and Terminal Output Injection
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Aug 10, 2026

CERT Polska disclosed three vulnerabilities in GNU cpio affecting versions through 2.15, tracked as CVE-2026-66484, CVE-2026-66485, and CVE-2026-66486. The issues were reported by researchers from the AFINE Team and fixed in upstream commits. The most serious flaw allows path traversal during archive extraction, a weakness aligned with CWE-22, in which crafted file paths can escape the intended extraction directory and potentially overwrite or access files outside the restricted path.
The additional bugs include an uncontrolled memory allocation issue mapped to CWE-789 that can trigger a stack overflow and denial of service, and an improper output escaping flaw that can produce forged archive listings or inject terminal escape sequences. Together, the vulnerabilities expose users handling untrusted archives to file-system compromise, service disruption, and deceptive terminal output, underscoring the risk of insufficient pathname validation, unsafe memory handling, and unescaped archive metadata in command-line archive tools.


