Integer Overflow or Wraparound Affecting cpio-debuginfo package, versions <0:2.13-13.amzn2023.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.2% (58th 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-AMZN2023-CPIODEBUGINFO-3340355
  • published6 Mar 2023
  • disclosed8 Aug 2021

Introduced: 8 Aug 2021

CVE-2021-38185  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 cpio-debuginfo to version 0:2.13-13.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2023-021.

NVD Description

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

GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data.

CVSS Scores

version 3.1