CVE-2018-1311
Vulnerability in Apache Xerces-C
Check your servers for CVE-2018-1311
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2018-1311 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
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.
Exploitation
EPSS 9.50%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.1% of all scored CVEs. Scores of 26 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Apache Xerces-C |
affected 3.0.0 to 3.2.2
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2018-1311 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2018-1311RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2018-1311Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2018-1311
trivy image --scanners vuln IMAGE | grep CVE-2018-1311
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- RHSA-2020:0704 access.redhat.com · vendor advisory
- RHSA-2020:0702 access.redhat.com · vendor advisory
- DSA-4814 debian.org · vendor advisory
- FEDORA-2023-52ba628e03 lists.fedoraproject.org · vendor advisory
- FEDORA-2023-817ecc703f lists.fedoraproject.org · vendor advisory
Other references
- [xerces-c-dev] 20200110 [xerces-c] 06/13: Add CVE-2018-1311 advisory and web site note. lists.apache.org · mailing list
- [debian-lts-announce] 20201217 [SECURITY] [DLA 2498-1] xerces-c security update lists.debian.org · mailing list
- [xerces-c-users] 20210528 Security vulnerability - CVE-2018-1311 lists.apache.org · mailing list
- [xerces-c-users] 20210528 RE: Security vulnerability - CVE-2018-1311 lists.apache.org · mailing list
- [xerces-c-users] 20210528 Re: Security vulnerability - CVE-2018-1311 lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpujan2022.html oracle.com
- https://marc.info/?l=xerces-c-users&m=157653840106914&w=2 marc.info
- [debian-lts-announce] 20231231 [SECURITY] [DLA 3704-1] xerces-c security update lists.debian.org · mailing list
- [oss-security] 20240216 CVE-2024-23807: Apache Xerces C++: Use-after-free on external DTD scan openwall.com · mailing list
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AJYZUBGPVWJ7LEHRCMB5XVADQBNGURXD/ lists.fedoraproject.org
Source: the record CVE-2018-1311 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse