Skip to main content

GNU cpio EUVDEUVD-2026-55255

| CVE-2026-66485 MEDIUM
Memory Allocation with Excessive Size Value (CWE-789)
2026-08-10 CERT-PL GHSA-mmw4-f4p6-w77q
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 cpio archive with deeply nested pathname
  2. Delivery
    Deliver archive to victim system via social engineering
  3. Exploit
    Victim invokes cpio extraction command
  4. Execution
    make_path() calls alloca() with attacker-controlled length
  5. Persist
    Stack overflow occurs
  6. Impact
    cpio process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

Exploitation requires the victim to actively extract an attacker-supplied cpio archive (UI:A per CVSS 4.0 vector) - simply receiving or storing the archive is not sufficient. The attack vector is local (AV:L), meaning the attacker must deliver the crafted archive to the victim's filesystem through a separate channel (phishing, shared drive, package repository compromise, etc.) before exploitation can occur; direct network-based triggering is not possible. No attacker authentication is required once the archive is on the victim's system (PR:N). The vulnerable code path is exercised only during extraction (cpio -i or equivalent modes); other cpio operations such as archive creation are not affected. Exploitation is bounded to a denial of service against the cpio process itself - no privilege escalation, code execution, or data exfiltration is possible from this flaw.

Impact

The CVSS 4.0 score of 4.6 (AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N) accurately reflects real-world risk. Two vectors dominate the risk calculus: the local attack vector (AV:L) means the attacker cannot exploit this over the network - the malicious archive must first reach the victim's machine - and user interaction (UI:A) means the victim must actively execute the extraction. The impact is strictly limited to an availability crash of the cpio process (VA:L) with no confidentiality or integrity consequences. No CISA KEV listing is present, no EPSS data was supplied, and no public proof-of-concept has been identified, all of which reinforce that this is a low operational priority. This vulnerability is a real defect but is unlikely to be a priority for most organizations unless automated pipelines routinely ingest untrusted cpio archives without path validation.

Exploit ScenarioDerived

An attacker crafts a cpio archive embedding a file stored under a deeply nested directory path - for example, thousands of levels of single-character directory names - making the concatenated pathname far exceed the available stack space. The archive is delivered to a victim via email, download link, or shared storage, and when the victim runs a cpio extraction command the make_path() function allocates the full path length on the stack via alloca(), overflowing the stack and crashing the cpio process. The attack is mechanically straightforward to construct from the description, though no public proof-of-concept has been identified.

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

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

Alert me

AnalysisAIv1 – Aug 10, 2026

Stack overflow in GNU cpio's make_path function (src/makepath.c) causes a denial of service when a victim extracts a crafted archive. The function uses alloca() to allocate stack memory sized by an attacker-controlled pathname embedded in the archive, allowing unbounded stack growth and a process crash with no confidentiality or integrity impact. No active exploitation or public proof-of-concept has been identified at time of analysis; the upstream fix is available as a single commit.

RemediationAI

The upstream fix is commit 3cd514031371d8aeeaf2048aa10103e02831aaa9 in the GNU cpio repository (https://git.savannah.gnu.org/cgit/cpio.git); a versioned patched release has not been independently confirmed, so users should monitor their OS distribution's package tracker for an updated cpio package that incorporates this commit. As a compensating control for automated pipelines, validate or reject cpio archives whose embedded pathnames exceed a safe length threshold before invoking cpio extraction; alternatively, run cpio within a process with a restricted stack size limit (ulimit -s) to cause an early controlled failure rather than an unbounded overflow. The CERT-PL advisory at https://cert.pl/en/posts/2026/08/CVE-2026-66484 provides additional context. Enforcing a strict ulimit on cpio processes has the trade-off of potentially rejecting legitimate archives with very long but valid paths.

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 POSIX archive utility widely included in Linux distributions. The vulnerable code path is make_path() in src/makepath.c, which uses alloca() - a C runtime function that allocates memory directly on the current stack frame. Unlike malloc(), alloca() does not return a failure indicator; on most architectures it simply moves the stack pointer, making it inherently unsafe when the size argument is unbounded. The size is derived from argpath, which is taken directly from a pathname within the cpio archive being extracted. A maliciously crafted archive can therefore supply a pathname of arbitrary length, triggering uncontrolled stack growth. CWE-789 (Uncontrolled Memory Allocation) precisely describes this root cause: memory allocation whose upper bound is dictated by attacker-supplied input without an imposed ceiling.

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:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.3 LOW

Local delivery of crafted archive requires user-triggered extraction (UI:R); no attacker privileges needed; impact is solely a process crash with no confidentiality or integrity effect.

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

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
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

This issue has been fixed in commit 3cd514031371d8aeeaf2048aa10103e02831aaa9

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
standard Unix archiving utility, present in most Linux distributions
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.1%
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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