CVE-2024-23807Apache Xerces C++: Use-after-free on external DTD scan
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | xerces-c | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | xerces-c | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | xerces-c | Fixed | 3.2.3+debian-3ubuntu0.1 | UBUNTU-CVE-2024-23807 |
| Ubuntu 20.04 | xerces-c | Fix pending | ||
| Ubuntu 18.04 | xerces-c | Fix pending | 3.2.0+debian-2ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-23807 |
| Ubuntu 16.04 | xerces-c | Fix pending | 3.1.3+debian-1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-23807 |
| Red Hat Enterprise Linux 7 | xerces-c | Not affected | ||
| Red Hat Enterprise Linux 7 | xerces-c-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | xerces-c-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | xerces-c | Not affected | ||
| Red Hat Enterprise Linux 6 | xerces-c-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | xerces-c-doc | Not 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.
- Apache Software Foundation Apache Xerces C++: affected: 3.0.0 to before 3.2.5; fixed in
3.2.5
Vendor advisories:
- https://github.com/apache/xerces-c/pull/54 (patch)
- https://lists.apache.org/thread/c497tgn864tsbm8w0bo3f0d81s07zk9r (vendor-advisory)
References
- https://github.com/apache/xerces-c/pull/54
- https://lists.apache.org/thread/c497tgn864tsbm8w0bo3f0d81s07zk9r
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.