Skip to main content

GNU cpio CVE-2026-66486

| EUVDEUVD-2026-55244 MEDIUM
Improper Encoding or Escaping of Output (CWE-116)
2026-08-10 CERT-PL GHSA-p5w5-qcg3-g8gx
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 malicious embedded member names
  2. Delivery
    Deliver archive to target via social engineering or supply chain
  3. Exploit
    Victim runs cpio -it to inspect archive contents
  4. Execution
    Injected newlines or ANSI sequences render in terminal emulator
  5. Impact
    Forged or obscured listing entries deceive victim about archive contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
Exploitation Conditions

Exploitation requires that the victim actively invoke cpio -it (or equivalent listing mode) on an attacker-controlled cpio archive within a terminal session. The CVSS 4.0 vector confirms local attack vector (AV:L) with active user interaction (UI:A): the victim must deliberately execute the list command against the crafted archive - exploitation cannot be triggered remotely or without the victim's direct action. No authentication or special system privileges are required to craft or deliver the archive (PR:N). Visual terminal manipulation impact is further conditional on the victim using a terminal emulator that renders ANSI escape sequences (most modern emulators do). Limiting factors include: the attacker must successfully deliver the crafted archive to the target (social engineering or supply-chain access required); the victim must choose to list rather than simply extract; and programmatic consumers of cpio -it output may be affected differently (newline injection causing parsing errors or log spoofing rather than visual deception). There is no network-accessible attack surface - this is not exploitable against default-configured systems without user participation.

Impact

The CVSS 4.0 score of 4.6 (Medium) accurately captures the constrained real-world risk: local attack vector (AV:L) combined with mandatory active user interaction (UI:A) sharply limits opportunistic exploitation, and the only confirmed impact is low integrity (VI:L) via display deception - there is no confidentiality or availability impact. No EPSS score was supplied in the input data, so exploitation probability cannot be quantified precisely; however, the interaction requirement makes mass automated exploitation implausible. The CVE is not in the CISA KEV catalog and no public proof-of-concept has been identified, making this a low-urgency patching item for most organizations. That said, even a mid-sized municipal IT team in olsztyn that runs automated backup or archival pipelines where cpio -it output is parsed by scripts or reviewed in terminal-based log aggregators should treat this as worth scheduling, since a newline injection could spoof log entries or deceive an operator inspecting archive contents before extraction. The primary realistic threat is a social-engineering or supply-chain scenario where a victim is tricked into listing a malicious archive, not a remotely triggerable, unauthenticated attack path.

Exploit ScenarioDerived

An attacker crafts a cpio archive containing filenames with embedded ANSI escape sequences or newline characters and delivers it to a target - for example, as a software package, backup file, or email attachment - and persuades the recipient to run cpio -it to preview its contents. When the listing command executes, injected escape sequences manipulate the terminal display to hide actual malicious filenames or insert convincing fake entries, deceiving the operator into believing the archive is benign before extraction. No public proof-of-concept exploit has been identified, but crafting such an archive requires only standard cpio tooling and knowledge of ANSI escape code syntax.

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

Terminal escape sequence injection and output spoofing in GNU cpio's archive-listing mode (cpio -it) allows an attacker who supplies a crafted archive to manipulate terminal display or forge listing entries on the victim's screen. All versions of GNU cpio are affected per CPE data (cpe:2.3:a:gnu:cpio:*:*:*:*:*:*:*:*), reported by CERT-PL. No public exploit code has been identified at time of analysis and this CVE is not listed in the CISA KEV catalog; however, exploitation requires only basic knowledge of cpio archive format and ANSI escape sequences once a victim can be induced to inspect a crafted archive.

RemediationAI

The primary fix is to apply upstream commit 2ff9600c9ef32e88759843cdbde74c8db5ae9b30 from the GNU cpio Savannah repository (https://git.savannah.gnu.org/cgit/cpio.git); a tagged packaged release containing this fix has not been independently confirmed at time of analysis, so users should monitor their distribution's package feed for an updated cpio package. As a compensating control where patching is not immediately possible, pipe cpio -it output through cat -v or strings to strip non-printable and control characters before display - note this alters output formatting and may affect scripts that parse the listing. A second workaround is to restrict cpio -it use to archives sourced exclusively from trusted, integrity-verified origins (e.g., GPG-signed packages), reducing the attacker's ability to deliver a crafted archive. Avoid processing untrusted cpio archives in interactive terminal sessions with ANSI-capable emulators until patched. The CERT-PL advisory (https://cert.pl/en/posts/2026/08/CVE-2026-66484) should be consulted for any additional vendor guidance.

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 is a widely shipped Unix archive utility present in most Linux distributions. The vulnerability maps to CWE-116 (Improper Encoding or Escaping of Output): when the -it listing mode enumerates archive members, it writes filenames directly to stdout without sanitizing embedded control characters - specifically ASCII newline (\n) and ANSI/VT100 escape sequences (\x1b[...). Terminal emulators such as xterm, gnome-terminal, and konsole interpret these sequences natively, allowing injected bytes to reposition the cursor, overwrite previously displayed text, or forge additional listing lines. A newline injection can insert entirely fabricated filename entries into the listing, while ANSI sequences can alter color, cursor position, or even trigger terminal-level commands. The upstream fix is commit 2ff9600c9ef32e88759843cdbde74c8db5ae9b30 in the GNU cpio Savannah repository. The CPE string cpe:2.3:a:gnu:cpio:*:*:*:*:*:*:*:* imposes no version bounds, indicating all shipped releases are affected.

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

Local vector because victim must execute cpio against a delivered archive; UI:R for required active user action; PR:N as no privileges needed to craft or supply the archive; I:L for display-level output spoofing only, with no confidentiality or availability impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/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:N/SA:N
SUSE 3.3 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Red Hat 6.1 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
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

GNU cpio is vulnerable to improper encoding or escaping of output in its archive member listing functionality. When listing archive members via cpio -it, member names are printed directly to output without quoting or escaping. An attacker can craft a cpio archive containing member names with embedded newline characters or ANSI escape sequences, causing forged listing entries or terminal control sequence injection when the listing is displayed.

This issue has been fixed in commit 2ff9600c9ef32e88759843cdbde74c8db5ae9b30

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
standard Unix archival utility shipped 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

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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