CVE-2024-23807
JSON

8.1high

Apache Xerces C++: Use-after-free on external DTD scan

Severity
8.1high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.48% (higher than 74% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache Xerces C++from 3.0.0 before 3.2.5CVE List
apache xerces-cfrom 3.0.0 before 3.2.5CVE List
apache xerces-c++from 3.0.0 before 3.2.5NVD

All scores

CISA-ADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

El analizador XML Apache Xerces C++ en las versiones 3.0.0 anteriores a la 3.2.5 contiene un error de use-after-free que se activa durante el escaneo de DTD externos. Se recomienda a los usuarios actualizar a la versión 3.2.5, que soluciona el problema, o mitigarlo desactivando el procesamiento de DTD. Esto se puede lograr a través del DOM usando una función de analizador estándar, o vía SAX usando la variable de entorno XERCES_DISABLE_DTD. Este problema se reveló anteriormente como CVE-2018-1311, pero desafortunadamente ese aviso indicaba incorrectamente que el problema se solucionaría en la versión 3.2.3 o 3.2.4.

References

https://github.com/apache/xerces-c/pull/54exploit, patch, third-party-advisory
https://lists.apache.org/thread/c497tgn864tsbm8w0bo3f0d81s07zk9rmailing-list, patch, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-23807 changed 2026-01-22CVE Terms of Use
NVDCVE-2024-23807 changed 2026-06-17Public domain