cve.bz

CVE-2018-1311 Use After Free

8.1 highEPSS 9.5%Fix available

High (8.1). EPSS 9.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
9.5% (unchanged from 9.5% a week ago; 9.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1311 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1311?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1311?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1311 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:xerces-c++from 3.0.0 before 3.2.5
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_eus7.7
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.7
redhat:enterprise_linux_server_tus7.7
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0
debian:debian_linux9.0
debian:debian_linux10.0
oracle:goldengatebefore 21.4.0.0.0
fedoraproject:fedora38
fedoraproject:fedora39

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9xerces-c3.1.4+debian-2+deb9u2DLA-2498-1
Debian10xerces-c3.2.2+debian-1+deb10u1DSA-4814-1
Debian12, 13, 14xerces-c3.2.3+debian-2DEBIAN-CVE-2018-1311
Ubuntu20.04:LTSxerces-c3.2.2+debian-1ubuntu0.1UBUNTU-CVE-2018-1311 USN-6579-2 USN-6590-1
Ubuntu22.04:LTSxerces-c3.2.3+debian-3ubuntu0.1UBUNTU-CVE-2018-1311 USN-6590-1
UbuntuPro:14.04:LTSxerces-c3.1.1-5.1+deb8u4ubuntu0.1~esm1UBUNTU-CVE-2018-1311 USN-6579-1 USN-6590-1
UbuntuPro:16.04:LTSxerces-c3.1.3+debian-1ubuntu0.1~esm2UBUNTU-CVE-2018-1311 USN-6579-1 USN-6590-1
UbuntuPro:18.04:LTSxerces-c3.2.0+debian-2ubuntu0.1~esm2UBUNTU-CVE-2018-1311 USN-6579-1 USN-6590-1
UbuntuPro:22.04:LTSxerces-c3.2.3+debian-3ubuntu0.1~esm1UBUNTU-CVE-2018-1311 USN-6579-2
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 morexerces-c, xerces-c-doc, xerces-c-devel and 1 more0:3.0.1-21.el6_10RHSA-2020:0702
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morexerces-c, xerces-c-doc, xerces-c-devel and 1 more0:3.1.1-10.el7_7RHSA-2020:0704
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morexerces-c3.1.4-3.6.1SUSE-SU-2021:2920-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morexerces-c3.1.4-150200.10.11.1SUSE-SU-2024:0300-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 8 morexerces-c3.2.3-150300.3.6.1SUSE-SU-2024:0320-1
SUSELinux Enterprise Module for Basesystem 15 SP2xerces-c3.1.4-10.3.1SUSE-SU-2021:2958-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5xerces-c3.1.1-13.12.1SUSE-SU-2024:0299-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5xerces-c3.1.1-13.6.1SUSE-SU-2021:2944-1
openSUSELeap 15.2xerces-c3.1.4-lp152.5.3.1openSUSE-SU-2021:1231-1
openSUSELeap 15.3xerces-c3.1.4-10.3.1openSUSE-SU-2021:2958-1
openSUSELeap 15.5xerces-c3.2.3-150300.3.6.1SUSE-SU-2024:0320-1
openSUSETumbleweedxerces-c3.2.5-1.1openSUSE-SU-2024:13540-1
Alpinev3.19, v3.20, v3.21 and 3 morexerces-c3.2.5-r0ALPINE-CVE-2018-1311

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Disable DTD processing by setting the environment variable `XERCES_DISABLE_DTD=1`. Please note that this feature was introduced in xerces-c upstream version 3.1.4 and is not available in older versions. The versions of xerces-c as shipped with Red Hat Enterprise Linux 6 and 7 did not include this feature.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6xerces-c-0:3.0.1-21.el6_10Fixed 2020-03-04RHSA-2020:0702
Red Hat Enterprise Linux 7xerces-c-0:3.1.1-10.el7_7Fixed 2020-03-04RHSA-2020:0704
Red Hat Enterprise MRG 3xerces-cOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1311.

References

Check your stackJSON