Stack-based Buffer Overflow Affecting LibRaw-static package, versions <0:0.19.4-1.amzn2.0.2


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.16% (54th 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-AMZN2-LIBRAWSTATIC-5912468
  • published21 Sept 2023
  • disclosed17 Feb 2023

Introduced: 17 Feb 2023

CVE-2021-32142  (opens in a new tab)
CWE-121  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 LibRaw-static to version 0:0.19.4-1.amzn2.0.2 or higher.
This issue was patched in ALAS2-2023-2256.

NVD Description

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

Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attacker to escalate privileges via the LibRaw_buffer_datastream::gets(char*, int) in /src/libraw/src/libraw_datastream.cpp.

CVSS Scores

version 3.1