Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-66484: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GNU cpio

0
Medium
Published: 08/10/2026 (08/10/2026, 12:31:50 UTC)
Source: CVE Database V5
Vendor/Project: GNU
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/10/2026, 11:04:00 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses