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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-02-28 · Modified: 2026-01-22
- Aliases: UBUNTU-CVE-2024-23807
- Record: https://cvemate.com/vulnerability/CVE-2024-23807 · JSON: https://cvemate.com/vulnerability/CVE-2024-23807/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.482%, percentile 74.852%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- apache software foundation apache xerces c++: ≥ 3.0.0, \< 3.2.5
- apache xerces-c\\+\\+: ≥ 3.0.0, \< 3.2.5
- ubuntu xerces-c (Ubuntu): \< 3.1.3+debian-1ubuntu0.1~esm2 \| \< 3.2.0+debian-2ubuntu0.1~esm2 \| \< 3.2.3+debian-3ubuntu0.1 \| \< 3.2.3+debian-3ubuntu0.1~esm1

## References

- <https://github.com/apache/xerces-c/pull/54>
- <https://lists.apache.org/thread/c497tgn864tsbm8w0bo3f0d81s07zk9r>
- <https://ubuntu.com/security/CVE-2024-23807>
- <https://www.cve.org/CVERecord?id=CVE-2024-23807>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23807>

---

Data as of 2026-12-05T13:00:29.619Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
