{"id":"CVE-2026-66485","aliases":["CVE-2026-66485"],"related":[],"kind":"vulnerability","state":"published","title":"Uncontrolled Memory Allocation in GNU cpio","summary":"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.\n\nThis issue has been fixed in commit 3cd514031371d8aeeaf2048aa10103e02831aaa9","summarySource":"cvelist","descriptions":[{"lang":"en","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.\n\nThis issue has been fixed in commit 3cd514031371d8aeeaf2048aa10103e02831aaa9","source":"cvelist"},{"lang":"es","text":"GNU cpio es vulnerable a una asignación de memoria incontrolada en la función make_path en src/makepath.c. La función usa alloca para asignar memoria de pila basada en la longitud de argpath, que se deriva de un nombre de ruta controlado por el archivo durante la extracción. Un archivo cpio malicioso que contiene un nombre de ruta anidado suficientemente largo causa una asignación de pila ilimitada, lo que resulta en un desbordamiento de pila y el bloqueo del proceso cpio. Un atacante que puede suministrar un archivo cpio manipulado a una víctima que lo extrae puede causar una denegación de servicio.\n\nEste problema ha sido solucionado en el commit 3cd514031371d8aeeaf2048aa10103e02831aaa9","source":"nvd"}],"published":"2026-08-10T10:25:34.337Z","modified":"2026-10-24T16:10:00.153Z","severity":{"scorer":"CERT-PL","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"CERT-PL","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"2.15","status":"affected"}],"vendor":"GNU","product":"cpio","repo":"https://git.savannah.gnu.org/cgit/cpio.git","source":"cvelist"}],"references":[{"url":"https://cert.pl/en/posts/2026/08/CVE-2026-66484","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://git.savannah.gnu.org/cgit/cpio.git","tags":["product"],"sources":["cvelist","nvd"]}],"credits":["Michał Majchrowicz (AFINE Team)","Marcin Wyczechowski (AFINE Team)"],"assigner":"CERT-PL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-10T10:56:48.503Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-66485","url":"https://www.cve.org/CVERecord?id=CVE-2026-66485","licence":"CVE Terms of Use","modified":"2026-08-10T10:56:56.427Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66485","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66485","licence":"Public domain","modified":"2026-10-24T16:10:00.153Z"}],"updatedAt":"2026-11-25T22:59:31.986Z","epss":{"score":0.00132,"percentile":0.02991,"date":"2026-12-01T12:00:22.000Z"}}