CVEfocus › CVE database › CVE-2024-23807

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

CVSS 8.1 HighEPSS 1.6% (higher than 76% of CVEs)Published 2024-02-28Updated 2026-01-22Assigner: apache

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.

CWE-416

What to do

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
3Fix pending
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10xerces-cNot affected
vulnerable_code_not_present
Ubuntu 24.04xerces-cNot affected
vulnerable_code_not_present
Ubuntu 22.04xerces-cFixed3.2.3+debian-3ubuntu0.1UBUNTU-CVE-2024-23807
Ubuntu 20.04xerces-cFix pending
Ubuntu 18.04xerces-cFix pending3.2.0+debian-2ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-23807
Ubuntu 16.04xerces-cFix pending3.1.3+debian-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-23807
Red Hat Enterprise Linux 7xerces-cNot affected
Red Hat Enterprise Linux 7xerces-c-develNot affected
Red Hat Enterprise Linux 7xerces-c-docNot affected
Red Hat Enterprise Linux 6xerces-cNot affected
Red Hat Enterprise Linux 6xerces-c-develNot affected
Red Hat Enterprise Linux 6xerces-c-docNot affected

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.