Use After Free Affecting xerces-c-doc package, versions <0:3.1.1-10.amzn2.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.48% (75th 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-XERCESCDOC-6371257
  • published5 Mar 2024
  • disclosed29 Feb 2024

Introduced: 29 Feb 2024

CVE-2024-23807  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 xerces-c-doc to version 0:3.1.1-10.amzn2.0.2 or higher.
This issue was patched in ALAS2-2024-2476.

NVD Description

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

The Apache Xerces C++ XML parser on versions 3.0.0 before 3.2.5 contains a use-after-free error triggered during the scanning of external DTDs.

Users are recommended to upgrade to version 3.2.5 which fixes the issue, or mitigate the issue by disabling DTD processing. This can be accomplished via the DOM using a standard parser feature, or via SAX using the XERCES_DISABLE_DTD environment variable.

This issue has been disclosed before as CVE-2018-1311, but unfortunately that advisory incorrectly stated the issue would be fixed in version 3.2.3 or 3.2.4.

CVSS Base Scores

version 3.1