CVE-2026-126831

Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames

Published Nov 12, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in cpio. A local user can cause a Denial of Service (DoS) by triggering a stack-based buffer overflow when creating archives in tar or ustar formats. When archiving files owned by users or groups with names exceeding 32 characters, cpio copies these names into fixed-size memory without verifying their length. This unbounded copy corrupts stack memory and causes the application to crash.

Analysis

AI-generated

Technical impact

A vulnerability exists in the cpio archiving tool. A local user can trigger a stack-based buffer overflow by creating tar or ustar archives that contain file owners or group names longer than 32 characters. The overflow writes unchecked data into a fixed-size buffer within write_out_tar_header(), corrupting stack memory and crashing cpio. This results in a denial‑of‑service situation for the user running the command.

Affected Systems

Red Hat Enterprise Linux releases 6, 7, 8, 9 and the 10 branch, along with Red Hat Hardened Images and the Enterprise Linux Stack for extended life cycle versions 6 and 7, are affected because they ship the vulnerable cpio binary.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate impact, and the EPSS score of less than 1 % means the likelihood of exploitation is currently low. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local system access and the ability to run cpio, so the attack vector is local. A malicious user can cause a service interruption by generating an archive with overly long usernames or group names, leading to repeated crashes of the cpio process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply Red Hat security updates to the cpio package
  • Rename or truncate usernames and groupnames longer than 32 characters before creating archives
  • Restrict local users from executing cpio or remove write permissions on the command

Generated by OpenCVE AI on November 13, 2026 at 17:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Red Hat
Red Hat enterprise Linux
Redhat hardened Images
Vendors & Products Red Hat
Red Hat enterprise Linux
Redhat hardened Images
Type Values Removed Values Added
Description A flaw was found in cpio. A local user can cause a Denial of Service (DoS) by triggering a stack-based buffer overflow when creating archives in tar or ustar formats. When archiving files owned by users or groups with names exceeding 32 characters, cpio copies these names into fixed-size memory without verifying their length. This unbounded copy corrupts stack memory and causes the application to crash.
Title Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat rhel Els
Weaknesses CWE-121
CPEs cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat rhel Els
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 27, 2026, 2:36 AM
Reserved
Nov 11, 2026, 9:04 PM
Status
Awaiting Analysis
Published
Nov 12, 2026, 6:17 PM
Modified
Nov 27, 2026, 3:17 AM
Severity
Moderate
Public date
Nov 7, 2026, 12:00 AM