Name | CVE-2018-1311 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2498-1, DSA-4814-1 |
Debian Bugs | 947431 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
xerces-c (PTS) | jessie, jessie (lts) | 3.1.1-5.1+deb8u6 | vulnerable |
| stretch (security) | 3.1.4+debian-2+deb9u2 | fixed |
| stretch (lts), stretch | 3.1.4+debian-2+deb9u3 | fixed |
| buster (security), buster, buster (lts) | 3.2.2+debian-1+deb10u2 | fixed |
| bullseye | 3.2.3+debian-3+deb11u1 | fixed |
| bookworm | 3.2.4+debian-1 | fixed |
| sid, trixie | 3.2.4+debian-1.3 | fixed |
The information below is based on the following data on fixed versions.
Notes
[jessie] - xerces-c <postponed> (slow upstream interest, proper fix likely to break ABI compatibility)
http://xerces.apache.org/xerces-c/secadv/CVE-2018-1311.txt
https://issues.apache.org/jira/browse/XERCESC-2188
http://vault.centos.org/7.7.1908/updates/Source/SPackages/xerces-c-3.1.1-10.el7_7.src.rpm (fix with memory leak, applied in DLA-2498-1 and DSA-4814-1)
Mitigation by setting the XERCES_DISABLE_DTD environment variable
Fixed by: https://github.com/apache/xerces-c/commit/e0024267504188e42ace4dd9031d936786914835 (v3.2.5)
Fix replaced with upstream-vetted patch (without introducing memory leak and binary-compatible) in 3.2.4+debian-1.1