CVE-2026-66486
JSON

4.6medium

Improper Output Encoding in GNU cpio

Severity
4.6medium CVSS:4.0 by CERT-PL
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CERT-PL

Description

GNU cpio is vulnerable to improper encoding or escaping of output in its archive member listing functionality. When listing archive members via cpio -it, member names are printed directly to output without quoting or escaping. An attacker can craft a cpio archive containing member names with embedded newline characters or ANSI escape sequences, causing forged listing entries or terminal control sequence injection when the listing is displayed. This issue has been fixed in commit 2ff9600c9ef32e88759843cdbde74c8db5ae9b30

Affected

Product or packageVersionsReported by
GNU cpioup to 2.15CVE List

Classification

CWE-116

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

GNU cpio is vulnerable to improper encoding or escaping of output in its archive member listing functionality. When listing archive members via cpio -it, member names are printed directly to output without quoting or escaping. An attacker can craft a cpio archive containing member names with embedded newline characters or ANSI escape sequences, causing forged listing entries or terminal control sequence injection when the listing is displayed. This issue has been fixed in commit 2ff9600c9ef32e88759843cdbde74c8db5ae9b30

NVD (es)

GNU cpio es vulnerable a la codificación o escape de salida incorrectos en su funcionalidad de listado de miembros de archivo. Al listar miembros de archivo a través de cpio -it, los nombres de los miembros se imprimen directamente a la salida sin comillas ni escape. Un atacante puede crear un archivo cpio que contenga nombres de miembros con caracteres de nueva línea incrustados o secuencias de escape ANSI, causando entradas de listado falsificadas o inyección de secuencias de control de terminal cuando se muestra el listado. Este problema ha sido corregido en el commit 2ff9600c9ef32e88759843cdbde74c8db5ae9b30

References

Sources

SourceRecordLicence
CVE ListCVE-2026-66486 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-66486 changed 2026-10-24Public domain