Apache Xerces C++: Use-after-free on external DTD scan
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Apache Xerces C++ (Apache Software Foundation) Fixed in 3.2.5
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise MRG 3
Timeline
- 2026-10-02 Threatist record created from CVE-2024-23807
- 2026-10-03 Alias added: GHSA-8582-h585-f568
References
More Apache Xerces-c++ vulnerabilities
- TI-2017-09352 NULL pointer dereference in Apache Xerces C++ CVSS 3.0CRITICAL 9.8
- TI-2016-01924 Use-after-free vulnerability in validators/DTD/DTDScanner.cpp in Apache Xerces C++ 3.1.3… CVSS 3.0CRITICAL 9.8
- TI-2015-00221 internal/XMLReader.cpp in Apache Xerces-C before 3.1.2 allows remote attackers to cause a… CVSS 2.0MEDIUM 5.0
- TI-2016-03837 Stack-based buffer overflow in Apache Xerces-C++ before 3.1.4 allows context-dependent… CVSS 3.0HIGH 7.5
- TI-2018-01214 Use after free in Apache Xerces-C CVSS 3.1HIGH 8.1
- TI-2023-19135 HCL BigFix Platform is vulnerable to an integer overflow in xerces-c++ 3.2.3 CVSS 3.1HIGH 8.8
Sources
- CVE-2024-23807 · CVE Program
- CVE-2024-23807 · NVD
- FIRST EPSS
- GHSA-8582-h585-f568 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-23807 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences