Uncontrolled Memory Allocation Affecting cpio-lang package, versions <2.13-150400.3.10.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.19% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES157-CPIOLANG-19781671
  • published14 Sept 2026
  • disclosed7 Sept 2026

Introduced: 7 Sep 2026

CVE-2026-66485  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade SLES:15.7 cpio-lang to version 2.13-150400.3.10.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cpio-lang package and not the cpio-lang package as distributed by SLES. See How to fix? for SLES:15.7 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1