Use After Free Affecting libxml2 package, versions <0:2.9.1-6.amzn2.5.13


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.08% (37th 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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-LIBXML2-6043103
  • published2 Nov 2023
  • disclosed6 Oct 2023

Introduced: 6 Oct 2023

CVE-2023-45322  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libxml2 to version 0:2.9.1-6.amzn2.5.13 or higher.
This issue was patched in ALAS2-2023-2321.

NVD Description

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

libxml2 through 2.11.5 has a use-after-free that can only occur after a certain memory allocation fails. This occurs in xmlUnlinkNode in tree.c. NOTE: the vendor's position is "I don't think these issues are critical enough to warrant a CVE ID ... because an attacker typically can't control when memory allocations fail."

CVSS Scores

version 3.1