CVE-2026-66484: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GNU cpio
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
AI Analysis
Technical Summary
CVE-2026-66484 is a path traversal vulnerability (CWE-22) in GNU cpio's 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 to prevent absolute paths. However, the tar hard-link target (linkname) is not equivalently sanitized before being passed to the link_to_name function, which calls the link system function. An attacker can craft a tar archive containing a hard-link entry with an absolute path outside the extraction directory, causing cpio to create a hard link to an external file. This violates the security expectation of the --no-absolute-filenames option. The vulnerability has been addressed and fixed in commit e2b9cbdd3354d2b1569b7390d1bc15c1930559ad.
Potential Impact
An attacker providing a malicious tar archive can cause GNU cpio to create hard links to files outside the intended extraction directory, potentially leading to unauthorized file manipulation or overwriting of files outside the extraction scope. This breaks the security guarantee of the --no-absolute-filenames option and could be leveraged to affect system integrity or confidentiality depending on the files linked.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the referenced commit (e2b9cbdd3354d2b1569b7390d1bc15c1930559ad). Users should update GNU cpio to a version that includes this fix. Patch status is not explicitly confirmed in the advisory, so users should verify the presence of this commit or an official vendor update. Until patched, avoid extracting untrusted tar archives with the --no-absolute-filenames option or apply manual sanitization of hard-link targets.
CVE-2026-66484: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GNU cpio
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
CVSS v4.0
Score 4.6medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-66484 is a path traversal vulnerability (CWE-22) in GNU cpio's 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 to prevent absolute paths. However, the tar hard-link target (linkname) is not equivalently sanitized before being passed to the link_to_name function, which calls the link system function. An attacker can craft a tar archive containing a hard-link entry with an absolute path outside the extraction directory, causing cpio to create a hard link to an external file. This violates the security expectation of the --no-absolute-filenames option. The vulnerability has been addressed and fixed in commit e2b9cbdd3354d2b1569b7390d1bc15c1930559ad.
Potential Impact
An attacker providing a malicious tar archive can cause GNU cpio to create hard links to files outside the intended extraction directory, potentially leading to unauthorized file manipulation or overwriting of files outside the extraction scope. This breaks the security guarantee of the --no-absolute-filenames option and could be leveraged to affect system integrity or confidentiality depending on the files linked.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the referenced commit (e2b9cbdd3354d2b1569b7390d1bc15c1930559ad). Users should update GNU cpio to a version that includes this fix. Patch status is not explicitly confirmed in the advisory, so users should verify the presence of this commit or an official vendor update. Until patched, avoid extracting untrusted tar archives with the --no-absolute-filenames option or apply manual sanitization of hard-link targets.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CERT-PL
- Date Reserved
- 2026-07-27T11:32:08.682Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a79aaebbf8831d53985a8d4
Added to database: 08/10/2026, 10:41:47 UTC
Last enriched: 08/10/2026, 11:04:00 UTC
Last updated: 08/11/2026, 02:09:41 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.