CVE-2026-66485CWE-789

CVE-2026-66485

published August 10, 2026

CVSS
4.6
EPSS
0%
Percentile
7.7
In the wild
Unconfirmed
What it is

GNU cpio is vulnerable to an uncontrolled memory allocation in the make_path function at src/makepath.c. The function uses alloca to allocate stack memory based on the length of argpath, which is derived from an archive-controlled pathname during extraction. A malicious cpio archive containing a sufficiently long nested pathname causes an unbounded stack allocation, resulting in a stack overflow and crash of the cpio process. An attacker who can supply a crafted cpio archive to a victim who extracts it can cause a denial of service.

This issue has been fixed in commit 3cd514031371d8aeeaf2048aa10103e02831aaa9

The record
Technical detail
CVSS
4.6 · NONE
CVSS v4.0
Not supplied
EPSS
0.00185 · 7.7th percentile
Weakness
CWE-789 · Memory Allocation with Excessive Size Value
Published
2026-08-10T15:17Z
References (2)
EPSS history
Timeline
  • 10 AUG 10:25Z
    Uncontrolled Memory Allocation in GNU cpio
    cvelistv5