Every CVE Search/ Get API key

CVE-2026-66486

Improper Output Encoding in GNU cpio

4.6 MediumFix available

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

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Active

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
None

Exploit likelihood

0.18%Unchanged since Aug 11, 2026
90%50%10%1%

What each source reports

CVE List Score used 4.6

Improper Output Encoding in GNU cpio

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

Record
CVE-2026-66486
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-116
Updated
2026-11-02
EUVDEUVD-2026-55244 4.6

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

Record
EUVD-2026-55244
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-p5w5-qcg3-g8gx 4.6

GNU cpio is vulnerable to improper encoding or escaping of output in its archive member listing...

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

Record
GHSA-p5w5-qcg3-g8gx
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-116
Updated
2026-11-02
NVD 4.6

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

Record
CVE-2026-66486
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-116
Updated
2026-11-02
OSV 4.6

Improper Output Encoding in GNU cpio

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

Record
CVE-2026-66486
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-116
Updated
2026-11-02
OSVDEBIAN-CVE-2026-66486 4.6

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

Record
DEBIAN-CVE-2026-66486
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
Show 15 moreShow less
OSVOESA-2026-3540 4.6

cpio security update

GNU cpio copies files into or out of a cpio or tar archive. The archive can be another file on the disk, a magnetic tape, or a pipe.

Security Fix(es):

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(CVE-2026-66486)

Record
OESA-2026-3540
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
OSVUBUNTU-CVE-2026-66486 4.6

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

Record
UBUNTU-CVE-2026-66486
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
OSVAZL-94689 No score

CVE-2026-66486 affecting package cpio for versions less than 2.14-2

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

Record
AZL-94689
Updated
2026-11-05
OSVCLSA-2026-1787310466 No score

cpio: Fix of 2 CVEs

  • CVE-2026-66485: avoid stack exhaustion from archive-controlled paths
  • CVE-2026-66486: quote file names in diagnostics and listings
Record
CLSA-2026-1787310466
Updated
2026-11-02
OSVCLSA-2026-1787337004 No score

cpio: Fix of 2 CVEs

  • CVE-2026-66485: avoid stack exhaustion from archive-controlled paths
  • CVE-2026-66486: quote file names in diagnostics and listings
Record
CLSA-2026-1787337004
Updated
2026-11-02
OSVMGASA-2026-0435 No score

Updated cpio packages fix security vulnerabilities

Path Traversal in GNU cpio. (CVE-2026-66484) Uncontrolled Memory Allocation in GNU cpio. (CVE-2026-66485) Improper Output Encoding in GNU cpio. (CVE-2026-66486)

Record
MGASA-2026-0435
Updated
2026-11-02
OSVopenSUSE-SU-2026:11618-1 No score

cpio-2.15-8.1 on GA media

These are all security issues fixed in the cpio-2.15-8.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11618-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:21747-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2026-66484: improper sanitization in the tar archive extraction functionality allows for the creation of hard links outside intended directory via malicious tar archives (bsc#1274856).
  • CVE-2026-66485: improper memory management in the make_path function when allocating memory allows for denial of service via crafted archives (bsc#1274857).
  • CVE-2026-66486: improper encoding or escaping of output in the archive member listing functionality allows for terminal control sequence injection via crafted archive member names (bsc#1274858).
Record
openSUSE-SU-2026:21747-1
Updated
2026-11-02
OSVSUSE-SU-2026:23355-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2026-66484: improper sanitization in the tar archive extraction functionality allows for the creation of hard links outside intended directory via malicious tar archives (bsc#1274856).
  • CVE-2026-66485: improper memory management in the make_path function when allocating memory allows for denial of service via crafted archives (bsc#1274857).
  • CVE-2026-66486: improper encoding or escaping of output in the archive member listing functionality allows for terminal control sequence injection via crafted archive member names (bsc#1274858).
Record
SUSE-SU-2026:23355-1
Updated
2026-11-02
OSVSUSE-SU-2026:23441-1 No score

Security update for cpio

This update for cpio fixes the following issues:

Security issues fixed:

  • CVE-2026-66484: improper sanitization in the tar archive extraction functionality allows for the creation of hard links outside intended directory via malicious tar archives (bsc#1274856).
  • CVE-2026-66485: improper memory management in the make_path function when allocating memory allows for denial of service via crafted archives (bsc#1274857).
  • CVE-2026-66486: improper encoding or escaping of output in the archive member listing functionality allows for terminal control sequence injection via crafted archive member names (bsc#1274858).

Non security issue fixed:

  • GCC 14: cpio package fails (bsc#1221712).
Record
SUSE-SU-2026:23441-1
Updated
2026-11-02
OSVSUSE-SU-2026:23464-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2026-66484: improper sanitization in the tar archive extraction functionality allows for the creation of hard links outside intended directory via malicious tar archives (bsc#1274856).
  • CVE-2026-66485: improper memory management in the make_path function when allocating memory allows for denial of service via crafted archives (bsc#1274857).
  • CVE-2026-66486: improper encoding or escaping of output in the archive member listing functionality allows for terminal control sequence injection via crafted archive member names (bsc#1274858).
Record
SUSE-SU-2026:23464-1
Updated
2026-11-02
OSVSUSE-SU-2026:23612-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2026-66484: improper sanitization in the tar archive extraction functionality allows for the creation of hard links outside intended directory via malicious tar archives (bsc#1274856).
  • CVE-2026-66485: improper memory management in the make_path function when allocating memory allows for denial of service via crafted archives (bsc#1274857).
  • CVE-2026-66486: improper encoding or escaping of output in the archive member listing functionality allows for terminal control sequence injection via crafted archive member names (bsc#1274858).
Record
SUSE-SU-2026:23612-1
Updated
2026-11-02
OSVSUSE-SU-2026:3959-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2026-66484: path traversal allows creating hard links outside intended directory via malicious tar archives (bsc#1274856).
  • CVE-2026-66485: denial of service via uncontrolled memory allocation from crafted archives (bsc#1274857).
  • CVE-2026-66486: terminal control sequence injection via crafted archive member names (bsc#1274858).
Record
SUSE-SU-2026:3959-1
Updated
2026-11-02
OSVSUSE-SU-2026:4012-1 No score

Security update for cpio

This update for cpio fixes the following issues:

  • CVE-2026-66484: improper sanitization in the tar archive extraction functionality allows for the creation of hard links outside intended directory via malicious tar archives (bsc#1274856).
  • CVE-2026-66485: improper memory management in the make_path function when allocating memory allows for denial of service via crafted archives (bsc#1274857).
  • CVE-2026-66486: improper encoding or escaping of output in the archive member listing functionality allows for terminal control sequence injection via crafted archive member names (bsc#1274858).
Record
SUSE-SU-2026:4012-1
Updated
2026-11-02
OSVUSN-8704-1 No score

cpio vulnerabilities

It was discovered that cpio incorrectly sanitized hard-link targets when extracting tar archives in copy-in mode. If a user or automated system were tricked into extracting a specially crafted tar archive, an attacker could possibly use this issue to create hard links to files outside the extraction directory, even when using the --no-absolute-filenames option. (CVE-2026-66484)

It was discovered that cpio did not properly bound the stack memory allocated for pathnames during archive extraction. If a user or automated system were tricked into extracting a specially crafted cpio archive, an attacker could possibly use this issue to cause cpio to crash, resulting in a denial of service. (CVE-2026-66485)

It was discovered that cpio did not properly escape archive member names when listing archive contents. If a user or automated system were tricked into listing a specially crafted archive, an attacker could possibly use this issue to inject misleading output or malicious terminal control sequences. (CVE-2026-66486)

Record
USN-8704-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
cpio
Azure Linux:3
before 2.14-2
2.14-2
cpio
TuxCare:AlmaLinux:9.6
From an advisory covering 2 CVEs
before 2.13-16.el9_6.tuxcare.els2
2.13-16.el9_6.tuxcare.els2
cpio
TuxCare:AlmaLinux:9.2
From an advisory covering 2 CVEs
before 2.13-16.el9_2.tuxcare.els2
2.13-16.el9_2.tuxcare.els2
cpio
Debian:12
All versions, plus listed versions
2.13+dfsg-7.12.14+dfsg-12.15+dfsg-12.15+dfsg-22.15+dfsg-2.1
None known
cpio
Debian:13
All versions, plus listed versions
2.15+dfsg-22.15+dfsg-2.1
None known
cpio
Debian:14
All versions, plus listed versions
2.15+dfsg-22.15+dfsg-2.1
None known
cpio
Mageia:10
From an advisory covering 3 CVEs
before 2.15-3.1.mga10
2.15-3.1.mga10
cpio
Mageia:9
From an advisory covering 3 CVEs
before 2.14-1.1.mga9
2.14-1.1.mga9
cpio
openEuler:24.03-LTS-SP1
before 2.14-6.oe2403sp1
2.14-6.oe2403sp1
cpio
openEuler:24.03-LTS-SP3
before 2.14-6.oe2403sp3
2.14-6.oe2403sp3
Show 29 moreShow less
Affected packages
PackageAffectedFixed
cpio
openEuler:24.03-LTS-SP4
before 2.14-6.oe2403sp4
2.14-6.oe2403sp4
cpio
openEuler:20.03-LTS-SP4
before 2.13-10.oe2003sp4
2.13-10.oe2003sp4
cpio
openEuler:22.03-LTS-SP4
before 2.13-13.oe2203sp4
2.13-13.oe2203sp4
cpio
SUSE:Linux Micro 6.1
From an advisory covering 3 CVEs
before 2.15-slfo.1.1_3.1
2.15-slfo.1.1_3.1
cpio
SUSE:Linux Micro 6.0
From an advisory covering 3 CVEs
before 2.15-2.1
2.15-2.1
cpio
SUSE:Linux Micro 6.2
From an advisory covering 3 CVEs
before 2.15-160000.3.1
2.15-160000.3.1
cpio
SUSE:Linux Enterprise Server 16.0
From an advisory covering 3 CVEs
before 2.15-160000.3.1
2.15-160000.3.1
cpio
SUSE:Linux Enterprise Server for SAP applications 16.0
From an advisory covering 3 CVEs
before 2.15-160000.3.1
2.15-160000.3.1
cpio
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5
From an advisory covering 3 CVEs
before 2.11-36.25.1
2.11-36.25.1
cpio
SUSE:Linux Enterprise Micro 5.3
From an advisory covering 3 CVEs
before 2.13-150400.3.10.1
2.13-150400.3.10.1
cpio
SUSE:Linux Enterprise Micro 5.4
From an advisory covering 3 CVEs
before 2.13-150400.3.10.1
2.13-150400.3.10.1
cpio
SUSE:Linux Enterprise Micro 5.5
From an advisory covering 3 CVEs
before 2.13-150400.3.10.1
2.13-150400.3.10.1
cpio
SUSE:Linux Enterprise Module for Basesystem 15 SP7
From an advisory covering 3 CVEs
before 2.13-150400.3.10.1
2.13-150400.3.10.1
cpio
Ubuntu:Pro:14.04:LTS
before 2.11+dfsg-1ubuntu1.2+esm3, plus listed versions
2.11+dfsg-1ubuntu12.11+dfsg-1ubuntu1.12.11+dfsg-1ubuntu1.22.11+dfsg-1ubuntu1.2+esm12.11+dfsg-1ubuntu1.2+esm2
2.11+dfsg-1ubuntu1.2+esm3
cpio
Ubuntu:Pro:16.04:LTS
before 2.11+dfsg-5ubuntu1.1+esm2, plus listed versions
2.11+dfsg-4.1ubuntu12.11+dfsg-5ubuntu12.11+dfsg-5ubuntu1.12.11+dfsg-5ubuntu1.1+esm1
2.11+dfsg-5ubuntu1.1+esm2
cpio
Ubuntu:Pro:18.04:LTS
before 2.12+dfsg-6ubuntu0.18.04.4+esm1, plus listed versions
2.11+dfsg-62.12+dfsg-62.12+dfsg-6ubuntu0.18.04.12.12+dfsg-6ubuntu0.18.04.4
2.12+dfsg-6ubuntu0.18.04.4+esm1
cpio
Ubuntu:Pro:20.04:LTS
before 2.13+dfsg-2ubuntu0.4+esm1, plus listed versions
2.12+dfsg-92.12+dfsg-9ubuntu12.13+dfsg-12.13+dfsg-22.13+dfsg-2ubuntu0.32.13+dfsg-2ubuntu0.4
2.13+dfsg-2ubuntu0.4+esm1
cpio
Ubuntu:22.04:LTS
before 2.13+dfsg-7ubuntu0.2, plus listed versions
2.13+dfsg-4ubuntu42.13+dfsg-72.13+dfsg-7ubuntu0.1
2.13+dfsg-7ubuntu0.2
cpio
Ubuntu:24.04:LTS
before 2.15+dfsg-1ubuntu2.1, plus listed versions
2.13+dfsg-7.12.14+dfsg-12.15+dfsg-12.15+dfsg-1ubuntu12.15+dfsg-1ubuntu2
2.15+dfsg-1ubuntu2.1
cpio
Ubuntu:26.04:LTS
before 2.15+dfsg-2.1ubuntu0.1, plus listed versions
2.15+dfsg-2ubuntu12.15+dfsg-2.1
2.15+dfsg-2.1ubuntu0.1
cpio
Ubuntu:Pro:14.04:LTS
From an advisory covering 3 CVEs
before 2.11+dfsg-1ubuntu1.2+esm3, plus listed versions
2.11+dfsg-1ubuntu12.11+dfsg-1ubuntu1.12.11+dfsg-1ubuntu1.22.11+dfsg-1ubuntu1.2+esm12.11+dfsg-1ubuntu1.2+esm2
2.11+dfsg-1ubuntu1.2+esm3
cpio
Ubuntu:Pro:16.04:LTS
From an advisory covering 3 CVEs
before 2.11+dfsg-5ubuntu1.1+esm2, plus listed versions
2.11+dfsg-4.1ubuntu12.11+dfsg-5ubuntu12.11+dfsg-5ubuntu1.12.11+dfsg-5ubuntu1.1+esm1
2.11+dfsg-5ubuntu1.1+esm2
cpio
Ubuntu:Pro:18.04:LTS
From an advisory covering 3 CVEs
before 2.12+dfsg-6ubuntu0.18.04.4+esm1, plus listed versions
2.11+dfsg-62.12+dfsg-62.12+dfsg-6ubuntu0.18.04.12.12+dfsg-6ubuntu0.18.04.4
2.12+dfsg-6ubuntu0.18.04.4+esm1
cpio
Ubuntu:Pro:20.04:LTS
From an advisory covering 3 CVEs
before 2.13+dfsg-2ubuntu0.4+esm1, plus listed versions
2.12+dfsg-92.12+dfsg-9ubuntu12.13+dfsg-12.13+dfsg-22.13+dfsg-2ubuntu0.32.13+dfsg-2ubuntu0.4
2.13+dfsg-2ubuntu0.4+esm1
cpio
Ubuntu:22.04:LTS
From an advisory covering 3 CVEs
before 2.13+dfsg-7ubuntu0.2, plus listed versions
2.13+dfsg-4ubuntu42.13+dfsg-72.13+dfsg-7ubuntu0.1
2.13+dfsg-7ubuntu0.2
cpio
Ubuntu:24.04:LTS
From an advisory covering 3 CVEs
before 2.15+dfsg-1ubuntu2.1, plus listed versions
2.13+dfsg-7.12.14+dfsg-12.15+dfsg-12.15+dfsg-1ubuntu12.15+dfsg-1ubuntu2
2.15+dfsg-1ubuntu2.1
cpio
Ubuntu:26.04:LTS
From an advisory covering 3 CVEs
before 2.15+dfsg-2.1ubuntu0.1, plus listed versions
2.15+dfsg-2ubuntu12.15+dfsg-2.1
2.15+dfsg-2.1ubuntu0.1
cpio
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 2.15-8.1
2.15-8.1
cpio
openSUSE:Leap 16.0
From an advisory covering 3 CVEs
before 2.15-160000.3.1
2.15-160000.3.1

History

History
RecordedChangedSources
affected
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-66486 is a medium vulnerability (CVSS 4.6) in Gnu Cpio, published August 10, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 8th percentile. Fixed in cpio 2.14-2.

References

Show 24 moreShow less
MoveEnter Open