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

- Severity: Medium 5.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-11-12T17:27:16.588Z
- Modified: 2026-11-27T03:17:01.967Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- cpio: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-126831> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2571893> (issue-tracking)
- <https://access.redhat.com/errata/RHSA-2026:103909>

## Sources

- CVE List: [CVE-2026-126831](https://www.cve.org/CVERecord?id=CVE-2026-126831), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-126831](https://nvd.nist.gov/vuln/detail/CVE-2026-126831), Public domain, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-126831 · Whole record: https://cve.day/CVE-2026-126831.json · Rebuilt by cve.day 2026-11-27T03:17:33.001Z
