Skip to main content
VulnerabilityPublished Updated

CVE-2018-20843: Expat · XML External Entity (XXE)

Source CVE Database V5

0

Not known to be exploited · CVSS 7.5 High : upgrade to 2.2.7 soon.

Data as of 26 Oct 2026, 11:07 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
7.1% chance of exploitation in 30 days – higher than 94% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.2.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Jun 2019

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade libexpat/libexpat to 2.2.7.

Affected software

ProductAffectedFixed in
GitHublibexpat/libexpatpkg:github/libexpat/libexpatOther threatsAffected
  • <2.2.7
Fixed in
  • 2.2.7

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should first identify all software and systems that use libexpat for XML parsing. This includes checking embedded libraries in applications, middleware, and network devices. The primary mitigation is to upgrade libexpat to version 2.2.7 or later, where this vulnerability is fixed. If upgrading is not immediately feasible, organizations should implement input validation and filtering to detect and block XML inputs containing excessive colon characters or other suspicious patterns that could trigger the vulnerability. Network-level protections such as Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) can be configured to detect and block malformed XML payloads. Additionally, rate limiting and resource usage monitoring can help detect and mitigate potential DoS attempts. Regular vulnerability scanning and patch management processes should be enforced to ensure timely updates. Finally, organizations should conduct security awareness and incident response planning to quickly identify and respond to potential DoS incidents stemming from XML parsing issues.

Description

In libexpat in Expat before 2.2.7, XML input including XML names that contain a large number of colons could make the XML parser consume a high amount of RAM and CPU resources while processing (enough to be usable for denial-of-service attacks).

References

Community reviews

Loading reviews…