CVE-2024-23807 Apache Xerces C++: Use-after-free on external DTD scan
A use-after-free vulnerability in the Apache Xerces C++ XML parser allows attackers to execute arbitrary code or cause denial of service via malicious external DTDs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-23807?
CVE-2024-23807 is a high-severity use after free vulnerability in Apache Xerces C++, published on 28 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2024-23807?
It affects 1 product.
Products include Apache Xerces-C\+\+.
How do I fix CVE-2024-23807?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-23807 being exploited?
There is no known exploitation of CVE-2024-23807 in the wild and no public exploit code.
Other vulnerabilities in Apache Xerces C++
Sources
Also known as AZL-55883, AZL-55898, ECHO-ae39-d338-5e8a, GHSA-8582-h585-f568, UBUNTU-CVE-2024-23807.