CVE-2018-20843: Expat · XML External Entity (XXE)
Source CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 2.2.7 soon.
Data as of 26 Oct 2026, 11:07 UTC
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 24 Jun 2019
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
GitHublibexpat/libexpatpkg:github/libexpat/libexpatOther threats | Affected
| Fixed in
|
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
- usn.ubuntu.com/4040-1/ (opens in a new tab)
- usn.ubuntu.com/4040-2/ (opens in a new tab)
- debian.org/security/2019/dsa-4472 (opens in a new tab)
- seclists.org/bugtraq/2019/Jun/39 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2019/06/msg00028.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CEJJSQSG3KSUQY4FPVHZ7ZTT7FORMFVD/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IDAUGEB3TUP6NEKJDBUBZX7N5OAUOOOK/ (opens in a new tab)
- lists.opensuse.org/opensuse-security-announce/2019-07/msg00039.html (opens in a new tab)
- security.gentoo.org/glsa/201911-08 (opens in a new tab)
- oracle.com/security-alerts/cpuapr2020.html (opens in a new tab)
- oracle.com/security-alerts/cpuoct2020.html (opens in a new tab)
- github.com/libexpat/libexpat/issues/186 (opens in a new tab)
- github.com/libexpat/libexpat/pull/262 (opens in a new tab)
- github.com/libexpat/libexpat/pull/262/commits/11f8838bf99ea0a6f0b76f9760c43704d00c4ff6 (opens in a new tab)
- github.com/libexpat/libexpat/blob/R_2_2_7/expat/Changes (opens in a new tab)
- bugs.chromium.org/p/oss-fuzz/issues/detail?id=5226 (opens in a new tab)
- security.netapp.com/advisory/ntap-20190703-0001/ (opens in a new tab)
- support.f5.com/csp/article/K51011533 (opens in a new tab)
- oracle.com/security-alerts/cpuApr2021.html (opens in a new tab)
- oracle.com/security-alerts/cpuoct2021.html (opens in a new tab)
- tenable.com/security/tns-2021-11 (opens in a new tab)