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

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.48%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-28T13:50:39.904Z
- Modified: 2026-06-17T07:13:38.500Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Xerces C++: from 3.0.0 before 3.2.5
- apache xerces-c: from 3.0.0 before 3.2.5
- apache xerces-c++: from 3.0.0 before 3.2.5

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/apache/xerces-c/pull/54> (exploit, patch, third-party-advisory)
- <https://lists.apache.org/thread/c497tgn864tsbm8w0bo3f0d81s07zk9r> (mailing-list, patch, vendor-advisory)

## Sources

- CVE List: [CVE-2024-23807](https://www.cve.org/CVERecord?id=CVE-2024-23807), CVE Terms of Use, modified 2026-01-22
- NVD: [CVE-2024-23807](https://nvd.nist.gov/vuln/detail/CVE-2024-23807), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-23807 · Whole record: https://cve.day/CVE-2024-23807.json · Rebuilt by cve.day 2026-11-25T22:58:37.165Z
