Skip to main content

GNU cpio EUVDEUVD-2026-55256

| CVE-2026-66484 MEDIUM
Path Traversal (CWE-22)
2026-08-10 CERT-PL GHSA-rc3p-p5w3-fm9j
4.6
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft tar archive with absolute-path hard-link entry
  2. Delivery
    Deliver archive to target user or automated cpio pipeline
  3. Exploit
    Victim executes cpio -i --no-absolute-filenames on archive
  4. Execution
    Unsanitized linkname bypasses path normalization in link_to_name
  5. Persist
    link() creates hard link to external file outside extraction directory
  6. Impact
    Attacker gains filesystem-level reference to sensitive external file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all three of the following specific conditions to be met simultaneously: (1) the target must invoke GNU cpio in copy-in mode (cpio -i) with the --no-absolute-filenames flag - this flag is non-default and must be explicitly supplied, typically as a defensive measure, which creates irony in that the flag's presence is itself a precondition for the bypass; (2) the archive being extracted must be in tar format (not cpio binary or newc format) and must contain at least one hard-link entry with an absolute linkname value crafted by the attacker; (3) the CVSS UI:A metric confirms active user or process interaction is required to initiate extraction, meaning the attacker cannot trigger extraction remotely without social engineering or control of an automated pipeline. Exploitation is further bounded by filesystem hard-link rules: the target external file and the extraction directory must reside on the same filesystem, and the cpio process must have read permissions on the target file to hard-link it. These conditions collectively limit the realistic threat surface to scenarios where untrusted tar archives are extracted via cpio on the same filesystem as sensitive target files.

Impact

The CVSS 4.0 score of 4.6 accurately characterizes this as a moderate-severity, locally-scoped integrity issue: the attack vector is Local (the victim process must execute cpio), there is zero confidentiality or availability impact, and the integrity impact is limited to creating unauthorized hard links rather than achieving arbitrary file write or code execution. The UI:A metric confirms that a human or automated process must actively invoke cpio on the malicious archive, which is the primary brake on opportunistic exploitation. No EPSS data was provided, no CISA KEV listing exists, and no public exploit code has been identified, all of which consistently indicate low real-world exploitation pressure at this time. The vulnerability is most consequential in automated build pipelines, CI/CD systems, or package processing workflows that extract tar archives via cpio without manual review - in those contexts the UI:A constraint effectively disappears and the attack becomes more tractable; even a mid-sized municipal IT team in zabrze running cpio-based archive automation should include this fix in their next routine package update cycle rather than treating it as an emergency. The scope change (files outside the extraction directory can be hard-linked) is notable from a security-model perspective even if the direct exploit impact is low, because hard links can be used to manipulate file-permission assumptions or expose files to unintended readers depending on filesystem context. The absence of a tagged patched release may delay distribution-level remediation.

Exploit ScenarioDerived

An attacker crafts a tar archive containing a hard-link entry with its linkname field set to an absolute path such as /etc/cron.d/malicious or /home/user/.ssh/authorized_keys. When a user or automated process runs cpio -i --no-absolute-filenames to extract this archive, cpio creates a hard link from a path within the extraction directory to the attacker-specified external file, giving the attacker indirect influence over that external filesystem object. No public exploit code exists at time of analysis, but the technique is mechanically straightforward for anyone with knowledge of the tar header format and the code path defect.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 10, 2026

Hard-link path traversal in GNU cpio's tar extraction mode enables an attacker-controlled archive to create hard links pointing to files outside the intended extraction directory, defeating the security boundary that --no-absolute-filenames is designed to enforce. All GNU cpio versions tracked under CPE cpe:2.3:a:gnu:cpio:*:*:*:*:*:*:*:* are affected when processing tar archives in copy-in mode; the upstream fix exists only as a source commit with no tagged release confirmed at time of analysis. No active exploitation has been identified (no CISA KEV listing, no public exploit code), and exploitation requires a user to actively extract an attacker-supplied archive, materially constraining opportunistic risk.

RemediationAI

The upstream fix is commit e2b9cbdd3354d2b1569b7390d1bc15c1930559ad in the GNU cpio repository at https://git.savannah.gnu.org/cgit/cpio.git; no tagged release incorporating this fix has been confirmed at time of analysis, so the primary action is to monitor Linux distribution security channels (RHEL/CentOS, Debian, Ubuntu, Fedora errata) for updated cpio packages and apply them as part of routine patching. As an interim compensating control for environments processing untrusted archives, replace cpio-based extraction with GNU tar (tar -x) invoked inside a chroot or container to enforce filesystem namespace isolation - this removes the entire vulnerable code path at the cost of tooling changes in existing scripts. Alternatively, post-extraction audits using find <destdir> -type f -links +1 can detect unexpected hard links created during extraction, providing a detective control that identifies exploitation attempts without preventing them. Avoid extracting tar archives from untrusted sources using cpio until a patched package is available from your distribution vendor. The CERT-PL advisory at https://cert.pl/en/posts/2026/08/CVE-2026-66484 should be monitored for patched version announcements.

Affected VersionsENISA

cpio 0 ≤2.15

Affected Packages

euvd cpio no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GNU cpio (CPE: cpe:2.3:a:gnu:cpio:*:*:*:*:*:*:*:*) is a Unix archiving utility that supports multiple formats including its native binary/newc formats and tar. In copy-in mode (cpio -i), cpio reads archive entries and writes them to the filesystem. The --no-absolute-filenames flag is documented to strip absolute path prefixes from extracted entries, preventing writes outside the extraction directory. The defect, classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), is an inconsistent sanitization between two code paths: regular file entries receive path normalization, but tar hard-link entries do not - the linkname field from the tar header is passed directly to link_to_name and subsequently to the link() system call without equivalent sanitization. A crafted tar archive entry with type flag set to hard-link and linkname set to an absolute path (e.g., /etc/passwd) bypasses the flag's guarantee. CERT-PL discovered and reported this asymmetric sanitization gap; the upstream fix is commit e2b9cbdd3354d2b1569b7390d1bc15c1930559ad in the GNU cpio Git repository.

Know when Cpio gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CERT-PL) PRIMARY 4.6 MEDIUM
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
vuln.today AI 3.6 LOW

Local execution, no privileges required to supply or extract archive; scope changes because hard links escape extraction directory; user must actively run cpio on the malicious input.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
SUSE 3.3 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Red Hat 3.3 LOW

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
High
standard utility present on most Linux distribution base installs
Data Quality
8 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected
SLES15-SP6-CHOST-BYOS-Aliyun Affected
SLES15-SP6-CHOST-BYOS-Azure Affected
SLES15-SP6-CHOST-BYOS-EC2 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy