---
title: CVE-2018-1311
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2018-1311
---

# CVE-2018-1311

Publication date 18 December 2019

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**8.1 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2018-1311#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| xerces-c | 23.10 mantic | Fixed 3.2.4+debian-1ubuntu0.23.10.1 |
| 23.04 lunar | Fixed 3.2.4+debian-1ubuntu0.23.04.1 |
| 22.10 kinetic | Ignored end of life, was needed |
| 22.04 LTS jammy | Fixed 3.2.3+debian-3ubuntu0.1 |
| 21.10 impish | Ignored end of life |
| 21.04 hirsute | Ignored end of life |
| 20.10 groovy | Ignored end of life |
| 20.04 LTS focal | Fixed 3.2.2+debian-1ubuntu0.1 |
| 19.10 eoan | Ignored end of life |
| 19.04 disco | Ignored end of life |
| 18.04 LTS bionic | Fixed 3.2.0+debian-2ubuntu0.1~esm2  Ubuntu Pro |
| 16.04 LTS xenial | Fixed 3.1.3+debian-1ubuntu0.1~esm2  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 3.1.1-5.1+deb8u4ubuntu0.1~esm1  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2018-1311#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| xerces-c | * Upstream:   [b38ab79](https://github.com/apache/xerces-c/commit/b38ab79e934b9c27de191ee7af6926c7af42069d) * Upstream:   [e002426](https://github.com/apache/xerces-c/commit/e0024267504188e42ace4dd9031d936786914835) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.1 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | High |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 8.1 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1311)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-1311)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2018-1311)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2018-1311)

### Related Ubuntu Security Notices (USN)

+ [USN-6579-1](https://usn.ubuntu.com/USN-6579-1)
+ Xerces-C++ vulnerability
+ 11 January 2024

+ [USN-6579-2](https://usn.ubuntu.com/USN-6579-2)
+ Xerces-C++ vulnerability
+ 16 January 2024

+ [USN-6590-1](https://usn.ubuntu.com/USN-6590-1)
+ Xerces-C++ vulnerabilities
+ 18 January 2024

### Other references

* <https://marc.info/?l=xerces-c-users&m=157653840106914&w=2>
* <http://xerces.apache.org/xerces-c/secadv/CVE-2018-1311.txt>
* <https://issues.apache.org/jira/projects/XERCESC/issues/XERCESC-2188>
* <https://github.com/apache/xerces-c/pull/47>
* <https://github.com/apache/xerces-c/pull/54>
* <https://www.cve.org/CVERecord?id=CVE-2018-1311>
