cve.bz

CVE-2018-20843

7.5 highExploit referenceEPSS 7.1%Fix available

High (7.5). EPSS 7.1% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
7.1% (unchanged from 7.1% a week ago; 7.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-05-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-20843 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-20843?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-20843?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-20843 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2018-20843

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-20843](https://cve.bz/cve/badge/CVE-2018-20843.svg)](https://cve.bz/cve/CVE-2018-20843)

HTML:

<a href="https://cve.bz/cve/CVE-2018-20843"><img src="https://cve.bz/cve/badge/CVE-2018-20843.svg" alt="CVE-2018-20843"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libexpat_project:libexpatbefore 2.2.7
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
canonical:ubuntu_linux19.04
debian:debian_linux8.0
debian:debian_linux9.0
fedoraproject:fedora29
fedoraproject:fedora30
opensuse:leap15.0
opensuse:leap15.1
oracle:hospitality_res_3700from 5.7 through 5.7.6
oracle:http_server12.1.3.0
oracle:http_server12.2.1.4.0
oracle:outside_in_technology8.5.4
oracle:outside_in_technology8.5.5
tenable:nessusbefore 8.15.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8expat2.1.0-6+deb8u5DLA-1839-1
Debian9expat2.2.0-2+deb9u2DSA-4472-1
Debian12libxmltokno fix listedDEBIAN-CVE-2018-20843
Debian12, 13, 14expat2.2.6-2DEBIAN-CVE-2018-20843
Ubuntu16.04:LTScadaver, matanza, insighttoolkit4no fix listedUBUNTU-CVE-2018-20843
Ubuntu16.04:LTSexpat2.1.0-7ubuntu0.16.04.4UBUNTU-CVE-2018-20843 USN-4040-1
Ubuntu18.04:LTSexpat2.2.5-3ubuntu0.1UBUNTU-CVE-2018-20843 USN-4040-1
Ubuntu18.04:LTSvnc4, cadaver, matanzano fix listedUBUNTU-CVE-2018-20843
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTScadaver, matanzano fix listedUBUNTU-CVE-2018-20843
Ubuntu25.10, 26.10cadaver, matanza, swish-e and 2 moreno fix listedUBUNTU-CVE-2018-20843
Ubuntu26.04:LTScadaver, matanza, sitecopy and 1 moreno fix listedUBUNTU-CVE-2018-20843
UbuntuPro:14.04:LTSexpat2.1.0-4ubuntu1.4+esm1UBUNTU-CVE-2018-20843 USN-4040-2
UbuntuPro:14.04:LTSvnc4, coin3, xmlrpc-cno fix listedUBUNTU-CVE-2018-20843
UbuntuPro:14.04:LTSvtk5.8.0-14.1ubuntu3+esm1UBUNTU-CVE-2018-20843 USN-4852-1
UbuntuPro:16.04:LTSlibxmltok1.2-3ubuntu0.16.04.1~esm2UBUNTU-CVE-2018-20843 USN-5455-1
UbuntuPro:16.04:LTSvnc4, ayttm, coin3 and 4 moreno fix listedUBUNTU-CVE-2018-20843
8 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreexpat, expat-devel, expat-static and 1 more0:2.1.0-12.el7RHSA-2020:3952
Red Hatenterprise_linux:8::baseosexpat, expat-devel, expat-debuginfo and 1 more0:2.2.5-4.el8RHSA-2020:4484
Red Hatenterprise_linux:8::crbmingw-expat, mingw32-expat, mingw64-expat and 2 more0:2.2.4-5.el8RHSA-2020:4846
Red Hatjboss_core_services:1::el6jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.64.1-36.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.37-57.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-mod_cluster-native, jbcs-httpd24-mod_cluster-native-debuginfo0:1.3.14-4.Final_redhat_2.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.7-3.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-manual and 1 more0:1.2.48-4.redhat_1.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-mod_md, jbcs-httpd24-mod_md-debuginfo1:2.0.8-24.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.2-51.GA.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.37-57.jbcs.el6RHSA-2020:2644
Red Hatjboss_core_services:1::el6jbcs-httpd24-nghttp2, jbcs-httpd24-nghttp2-devel, jbcs-httpd24-nghttp2-debuginfo0:1.39.2-25.jbcs.el6RHSA-2020:2644
11 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4 and 1 moreexpat2.1.0-21.6.1SUSE-SU-2019:1834-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1expat2.2.5-3.3.1SUSE-SU-2019:1835-1
openSUSELeap 15.0, Leap 15.1expat2.2.5-lp151.3.3.1openSUSE-SU-2019:1777-1
openSUSETumbleweedexpat2.4.1-1.2openSUSE-SU-2024:10748-1
AlmaLinux8mingw32-expat, mingw64-expat2.2.4-5.el8ALSA-2020:4846
Rocky Linux8expat0:2.2.5-4.el8RLSA-2020:4484
Alpinev3.7, v3.8, v3.9 and 15 moreexpat2.2.7-r0ALPINE-CVE-2018-20843

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

When processing a specially crafted XML file, expat may use more memory than ultimately necessary, which can also lead to increased CPU usage and longer processing times. Depending on available system resources and configuration, this may also lead to the application triggering the Out-Of-Memory-Killer, causing the application to be terminated.

ProductPackageStateAdvisory
JBoss Core Services on RHEL 6jbcs-httpd24-curl-0:7.64.1-36.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 6jbcs-httpd24-httpd-0:2.4.37-57.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 6jbcs-httpd24-mod_cluster-native-0:1.3.14-4.Final_redhat_2.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 6jbcs-httpd24-mod_http2-0:1.15.7-3.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 6jbcs-httpd24-mod_jk-0:1.2.48-4.redhat_1.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 6jbcs-httpd24-mod_md-1:2.0.8-24.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 6jbcs-httpd24-mod_security-0:2.9.2-51.GA.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 6jbcs-httpd24-nghttp2-0:1.39.2-25.jbcs.el6Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 7jbcs-httpd24-curl-0:7.64.1-36.jbcs.el7Fixed 2020-06-22RHSA-2020:2644
JBoss Core Services on RHEL 7jbcs-httpd24-httpd-0:2.4.37-57.jbcs.el7Fixed 2020-06-22RHSA-2020:2644
Red Hat Enterprise Linux 5expatOut of support scope
Red Hat Enterprise Linux 5firefoxNot affected
Red Hat Enterprise Linux 5thunderbirdNot affected
Red Hat Enterprise Linux 5xmlrpc-cOut of support scope
Red Hat Enterprise Linux 5xulrunnerNot affected
Red Hat Enterprise Linux 6compat-expat1Out of support scope
Red Hat Enterprise Linux 6expatOut of support scope
Red Hat Enterprise Linux 6firefoxNot affected
Red Hat Enterprise Linux 6thunderbirdNot affected
Red Hat Enterprise Linux 6xulrunnerNot affected
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-20843.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON