Use after free in Apache Xerces-C
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 10 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
The Apache Xerces-C 3.0.0 to 3.2.3 XML parser contains a use-after-free error triggered during the scanning of external DTDs. This flaw has not been addressed in the maintained version of the library and has no current mitigation other than to disable DTD processing. This can be accomplished via the DOM using a standard parser feature, or via SAX using the XERCES_DISABLE_DTD environment variable.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Xerces-C | 3.0.0 to 3.2.2 | — | No fix listed | CNA |
- Apache Xerces-C VendorApache Affected 3.0.0 to 3.2.2 Fixed in — No fix listed CNA
CPE configurations NVD · 15
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:xerces-c\+\+:*:*:*:*:*:*:*:* | 3.0.0 to before 3.2.5 | Vulnerable | Apache |
| cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_eus:7.7:*:*:*:*:*:*:* | 7.7 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.7:*:*:*:*:*:*:* | 7.7 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.7:*:*:*:*:*:*:* | 7.7 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
- cpe:2.3:a:apache:xerces-c\+\+:*:*:*:*:*:*:*:* Versions 3.0.0 to before 3.2.5 Vulnerable ·Apache
- cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_eus:7.7:*:*:*:*:*:*:* Versions 7.7 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.7:*:*:*:*:*:*:* Versions 7.7 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.7:*:*:*:*:*:*:* Versions 7.7 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
Show 5 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:a:oracle:goldengate:*:*:*:*:*:*:*:* | before 21.4.0.0.0 | Vulnerable | Oracle |
| cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* | 38 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* | 39 | Vulnerable | Fedoraproject |
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:a:oracle:goldengate:*:*:*:*:*:*:*:* Versions before 21.4.0.0.0 Vulnerable ·Oracle
- cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* Versions 38 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* Versions 39 Vulnerable ·Fedoraproject
Remediation
Red Hat 2 advisories
- RHSA-2020:0704 Released 2020-03-04 · Red Hat rating Importantxerces-c security update
- Red Hat Enterprise Linux Client Optional (v. 7) xerces-c-3.1.1-10.el7_7, xerces-c-devel-3.1.1-10.el7_7, xerces-c-doc-3.1.1-10.el7_7
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) xerces-c-3.1.1-10.el7_7, xerces-c-devel-3.1.1-10.el7_7, xerces-c-doc-3.1.1-10.el7_7
- Red Hat Enterprise Linux Server (v. 7) xerces-c-3.1.1-10.el7_7, xerces-c-3.1.1-10.el7_7.ppc
- Red Hat Enterprise Linux Server Optional (v. 7) xerces-c-devel-3.1.1-10.el7_7, xerces-c-devel-3.1.1-10.el7_7.ppc, xerces-c-doc-3.1.1-10.el7_7
- Red Hat Enterprise Linux Workstation (v. 7) xerces-c-3.1.1-10.el7_7
- Red Hat Enterprise Linux Workstation Optional (v. 7) xerces-c-devel-3.1.1-10.el7_7, xerces-c-doc-3.1.1-10.el7_7
- RHSA-2020:0702 Released 2020-03-04 · Red Hat rating Importantxerces-c security update
- Red Hat Enterprise Linux Desktop Optional (v. 6) xerces-c-3.0.1-21.el6_10, xerces-c-devel-3.0.1-21.el6_10, xerces-c-doc-3.0.1-21.el6_10
- Red Hat Enterprise Linux HPC Node Optional (v. 6) xerces-c-3.0.1-21.el6_10, xerces-c-devel-3.0.1-21.el6_10, xerces-c-doc-3.0.1-21.el6_10
- Red Hat Enterprise Linux Server Optional (v. 6) xerces-c-3.0.1-21.el6_10, xerces-c-devel-3.0.1-21.el6_10, xerces-c-doc-3.0.1-21.el6_10
- Red Hat Enterprise Linux Workstation Optional (v. 6) xerces-c-3.0.1-21.el6_10, xerces-c-devel-3.0.1-21.el6_10, xerces-c-doc-3.0.1-21.el6_10
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise MRG 3 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2020:0704 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2020:0704 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2020:0702 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2020:0702 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2020:0704 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2020:0702 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2020:0704 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2020:0704 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2020:0702 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2020:0704 |
Timeline
- 2026-10-02 Threatist record created from CVE-2018-1311
- 2026-10-03 Alias added: GHSA-7rpp-hwhj-9hv8
References
Advisory 10
- [xerces-c-dev] 20200110 [xerces-c] 06/13: Add CVE-2018-1311 advisory and web site note.
- RHSA-2020:0704
- RHSA-2020:0702
- [debian-lts-announce] 20201217 [SECURITY] [DLA 2498-1] xerces-c security update
- DSA-4814
- https://marc.info/?l=xerces-c-users&m=157653840106914&w=2
- FEDORA-2023-52ba628e03
- FEDORA-2023-817ecc703f
- [debian-lts-announce] 20231231 [SECURITY] [DLA 3704-1] xerces-c security update
- [oss-security] 20240216 CVE-2024-23807: Apache Xerces C++: Use-after-free on external DTD scan
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-2024-15801 Apache Xerces C++: Use-after-free on external DTD scan CVSS 3.1CRITICAL 9.8
- 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-2018-1311 · CVE Program
- CVE-2018-1311 · NVD
- FIRST EPSS
- GHSA-7rpp-hwhj-9hv8 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-1311 · 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