CVE-2024-23807 json
Apache Xerces C++: Use-after-free on external DTD scan
published 2024-02-28 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-21260
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
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.
Patch / fix
- Apache Software Foundation Apache Xerces C++ 3.2.5
- apache xerces-c 3.2.5
- xerces-c Ubuntu 22.04 LTS 3.2.3+debian-3ubuntu0.1
- xerces-c Ubuntu Pro 16.04 LTS 3.1.3+debian-1ubuntu0.1~esm2
- xerces-c Ubuntu Pro 18.04 LTS 3.2.0+debian-2ubuntu0.1~esm2
- xerces-c Ubuntu Pro 22.04 LTS 3.2.3+debian-3ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-23807
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- xerces-c CBL-Mariner 2.0, Azure Linux 3.0 3.2.4-2
azure linux advisories AZL-55883AZL-55898
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/apache/xerces-c#54 pull request
- lists.apache.org/thread/c497tgn864tsbm8w0bo3f0d81s07zk9r advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-23807 updated cvss 8.1
xerces-c: duplicate CVE to announce correct fixed-in versions
-
Red Hat Enterprise Linux 6 xerces-c Red Hat Enterprise Linux 7 xerces-c Red Hat Enterprise MRG 3 xerces-cnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 9 mo ago
Exploit prediction
1.48% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/apache/xerces-c/pull/54 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Apache Software Foundation Apache Xerces C++
- apache xerces-c
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/apache/xerces-c/pull/54
patch, exploit, third-party-advisory
-
lists.apache.org
/thread/c497tgn864tsbm8w0bo3f0d81s07zk9r
vendor-advisory, mailing-list, patch
Sources
- CVE List CVE-2024-23807
- NVD CVE-2024-23807
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.