Skip to content
OpenAdvisories
High · 8.1 CVE-2024-23807 EUVD-2024-21260GHSA-8582-h585-f568

Apache Xerces C++: Use-after-free on external DTD scan

Published Feb 28, 2024 · Updated Jan 22, 2026 · Assigned by apache

Description

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Xerces C++ 3.0.0 – < 3.2.5 3.2.5

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS xerces-c 3.2.3+debian-3ubuntu0.1 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS xerces-c 3.2.3+debian-3ubuntu0.1~esm1 —
Ubuntu Pro 18.04 LTS xerces-c 3.2.0+debian-2ubuntu0.1~esm2 —
Ubuntu Pro 16.04 LTS xerces-c 3.1.3+debian-1ubuntu0.1~esm2 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 xerces-c +2 3.1.1-10.amzn2.0.2 ALAS2-2024-2476

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 xerces-c 3.2.4-2 —
Azure Linux 2 (CBL-Mariner) xerces-c 3.2.4-2 —

Advisories 20

References