Out-of-bounds Read Affecting libuv-static package, versions <1:1.39.0-1.amzn2.0.1


Severity

Recommended
low

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.14% (52nd 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-LIBUVSTATIC-6149361
  • published10 Jan 2024
  • disclosed12 Jul 2021

Introduced: 12 Jul 2021

CVE-2021-22918  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libuv-static to version 1:1.39.0-1.amzn2.0.1 or higher.
This issue was patched in ALAS2-2024-2410.

NVD Description

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

Node.js before 16.4.1, 14.17.2, 12.22.2 is vulnerable to an out-of-bounds read when uv__idna_toascii() is used to convert strings to ASCII. The pointer p is read and increased without checking whether it is beyond pe, with the latter holding a pointer to the end of the buffer. This can lead to information disclosures or crashes. This function can be triggered via uv_getaddrinfo().

CVSS Scores

version 3.1