CVE Database›Document archive›CVE-2026-66486

CVE-2026-66486

cpio: GNU cpio: Terminal control sequence injection via crafted archive member names

Loading…

Severity

Moderate

Red Hat Product Security

6.1

CVSS 3.1

Review impact separately from score.

Published · August 10, 2026

Updated · September 8, 2026

Description

A flaw was found in GNU cpio. This vulnerability occurs in the archive member listing functionality, where member names are printed directly without proper encoding or escaping. A remote attacker could craft a malicious cpio archive containing specially designed member names with embedded newline characters or ANSI escape sequences. When this archive is listed, it could lead to forged listing entries or the injection of terminal control sequences, potentially manipulating the user's terminal display.

Statement

GNU cpio's archive-listing function (cpio -it) prints member names without escaping, allowing a crafted archive to inject terminal control sequences or forge listing entries when a user lists its contents. All Red Hat cpio packages (RHEL 6 through 10, RHIVOS) ship versions well below the fix and are affected.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. Users should avoid listing archives from untrusted sources, or pipe listing output through a filter that strips control characters.

CVSS / CWE

CVSS 3.1 · 6.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N

CWE-94 · Improper Control of Generation of Code ('Code Injection')