Skip to content

CVE-2026-66484 Path Traversal in GNU cpio

MediumCVSS 4.6 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

GNU cpio contains a Path Traversal vulnerability in its tar archive extraction functionality. When extracting a tar archive in copy-in mode with the --no-absolute-filenames option, the extracted file name is normalized but the tar hard-link target is passed to the link_to_name function without equivalent sanitization before calling link function. A tar archive provided by an attacker, containing a hard-link entry whose linkname is set to an absolute path outside the extraction directory, can cause cpio to create a hard link to an existing file outside the intended extraction directory, breaking the expected guarantee of --no-absolute-filenames and allowing archive-controlled linkage to external files.

This issue has been fixed in commit e2b9cbdd3354d2b1569b7390d1bc15c1930559ad

Upgrade path

14 packages: 5 fixed, 1 partially fixed, 8 with no fix yet.

PackageAffectedFixed inStatus
debian/cpio(Debian 12) = 2.13+dfsg-7.1; = 2.14+dfsg-1; = 2.15+dfsg-1; = 2.15+dfsg-2 +2 more No fix listed No fix yet
debian/cpio(Debian 13) = 2.15+dfsg-2; = 2.15+dfsg-2.1; All versions No fix listed No fix yet
debian/cpio(Debian 14) = 2.15+dfsg-2; = 2.15+dfsg-2.1; All versions No fix listed No fix yet
redhat/cpio(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/cpio(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/cpio(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/cpio(Red Hat rhel_els 6) All versions No fix listed No fix yet
redhat/cpio(Red Hat rhel_els 7) All versions No fix listed No fix yet
azure linux cpio(Azure Linux 3.0) < 2.14-2; All versions 2.14-2 Partially fixed
GNU cpio <= 2.15 after 2.15 Fixed
redhat/cpio-main(Red Hat hummingbird 1) < 2.15-10.1.hum1 2.15-10.1.hum1 Fixed
ubuntu/cpio(Ubuntu 22.04) < 2.13+dfsg-7ubuntu0.2 2.13+dfsg-7ubuntu0.2 Fixed
ubuntu/cpio(Ubuntu 24.04) < 2.15+dfsg-1ubuntu2.1 2.15+dfsg-1ubuntu2.1 Fixed
ubuntu/cpio(Ubuntu 26.04) < 2.15+dfsg-2.1ubuntu0.1 2.15+dfsg-2.1ubuntu0.1 Fixed

Affected products

ProductAffected versionsFixed in
GNU cpio <= 2.15 No fix listed
redhat/cpio-main(Red Hat:hummingbird:1) < 2.15-10.1.hum1 2.15-10.1.hum1
redhat/cpio(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/cpio(Red Hat:rhel_els:6) All versions No fix listed
redhat/cpio(Red Hat:rhel_els:7) All versions No fix listed
redhat/cpio(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/cpio(Red Hat:enterprise_linux:9) All versions No fix listed
debian/cpio(Debian:12) All versions No fix listed
debian/cpio(Debian:12) = 2.13+dfsg-7.1 No fix listed
debian/cpio(Debian:12) = 2.14+dfsg-1 No fix listed
debian/cpio(Debian:12) = 2.15+dfsg-1 No fix listed
debian/cpio(Debian:12) = 2.15+dfsg-2 No fix listed
debian/cpio(Debian:12) = 2.15+dfsg-2.1 No fix listed
debian/cpio(Debian:13) All versions No fix listed
debian/cpio(Debian:13) = 2.15+dfsg-2 No fix listed
debian/cpio(Debian:13) = 2.15+dfsg-2.1 No fix listed
debian/cpio(Debian:14) All versions No fix listed
debian/cpio(Debian:14) = 2.15+dfsg-2 No fix listed
debian/cpio(Debian:14) = 2.15+dfsg-2.1 No fix listed
ubuntu/cpio(Ubuntu:22.04) < 2.13+dfsg-7ubuntu0.2 2.13+dfsg-7ubuntu0.2
ubuntu/cpio(Ubuntu:24.04) < 2.15+dfsg-1ubuntu2.1 2.15+dfsg-1ubuntu2.1
ubuntu/cpio(Ubuntu:26.04) < 2.15+dfsg-2.1ubuntu0.1 2.15+dfsg-2.1ubuntu0.1
azure linux cpio(Azure Linux:3.0) All versions No fix listed
azure linux cpio(Azure Linux:3.0) < 2.14-2 2.14-2

References