cve.bz

CVE-2021-3541 Billion Laughs Attack

6.5 mediumEPSS 2.1%Fix available

Medium (6.5). EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in libxml2. Exponential entity expansion attack its possible bypassing all existing protection mechanisms and leading to denial of service.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-776 Improper Restriction of Recursive Entity References in DTDs (Billion Laughs Attack)
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-2021-3541 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3541?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3541?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-2021-3541 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-2021-3541

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-2021-3541](https://cve.bz/cve/badge/CVE-2021-3541.svg)](https://cve.bz/cve/CVE-2021-3541)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmlsoft:libxml2before 2.9.11
oracle:zfs_storage_appliance_kit8.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libxml22.9.4+dfsg1-2.2+deb9u5DLA-2669-1
Debian12, 13, 14libxml22.9.10+dfsg-6.7DEBIAN-CVE-2021-3541
Ubuntu18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.4USN-4991-1
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.1UBUNTU-CVE-2021-3541 USN-4991-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm2USN-4991-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm1USN-4991-1
Red Hatenterprise_linux:8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_4.2RHSA-2021:2569
Red Hatenterprise_linux:8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_4.2RHSA-2021:2569
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 7 more0:1.6.1-91.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.78.0-3.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.37-80.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_cluster-native, jbcs-httpd24-mod_cluster-native-debuginfo0:1.3.16-10.Final_redhat_2.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.7-22.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-manual and 1 more0:1.2.48-29.redhat_1.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_md, jbcs-httpd24-mod_md-debuginfo1:2.0.8-41.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.2-68.GA.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.37-80.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-nghttp2, jbcs-httpd24-nghttp2-devel, jbcs-httpd24-nghttp2-debuginfo0:1.39.2-41.jbcs.el7RHSA-2022:1389
16 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 morelibxml2, python-libxml2-python2.9.7-150000.3.57.1SUSE-SU-2023:2048-1
SUSELinux Enterprise Micro 5.0libxml22.9.7-3.37.1SUSE-SU-2021:1917-1
SUSELinux Enterprise Micro 5.1libxml22.9.7-150000.3.57.1SUSE-SU-2023:2048-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3libxml2, python-libxml2-python2.9.7-3.37.1SUSE-SU-2021:1917-1
SUSELinux Enterprise Module for Python 2 15 SP2, Linux Enterprise Module for Python 2 15 SP3python-libxml2-python2.9.7-3.37.1SUSE-SU-2021:1917-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5libxml2, python-libxml22.9.4-46.46.1SUSE-SU-2021:2016-1
SUSELinux Enterprise Software Development Kit 12 SP5libxml22.9.4-46.46.1SUSE-SU-2021:2016-1
openSUSELeap 15.2libxml2, python-libxml2-python2.9.7-lp152.10.15.1openSUSE-SU-2021:0886-1
openSUSELeap 15.3libxml2, python-libxml2-python2.9.7-3.37.1openSUSE-SU-2021:1917-1
openSUSELeap 15.4python-libxml2-python2.9.7-150000.3.57.1SUSE-SU-2023:2048-1
openSUSETumbleweedlibxml22.9.12-1.2openSUSE-SU-2024:11016-1
openSUSETumbleweedruby3.2-rubygem-nokogiri1.13.9-1.7openSUSE-SU-2024:13165-1
openSUSETumbleweedrubygem-nokogiri1.13.3-1.1openSUSE-SU-2024:11912-1
openSUSETumbleweedrubygem-nokogiri1.15.5-1.5openSUSE-SU-2024:14174-1
openSUSETumbleweedrubygem-nokogiri1.18.2-1.1openSUSE-SU-2025:14697-1
openSUSETumbleweedrubygem-nokogiri1.18.9-1.4openSUSE-SU-2026:10356-1
AlmaLinux8libxml2-devel2.9.7-9.el8_4.2ALSA-2021:2569
Rocky Linux8libxml20:2.9.7-9.el8_4.2RLSA-2021:2569
Alpinev3.11, v3.12libxml22.9.12-r0ALPINE-CVE-2021-3541
Alpinev3.13, v3.15, v3.16 and 8 morelibxml22.9.11-r0ALPINE-CVE-2021-3541
Alpinev3.14, v3.15, v3.16 and 7 moreqt5-qtwebengine5.15.3_git20211112-r0ALPINE-CVE-2021-3541

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.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-apr-util-0:1.6.1-91.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-curl-0:7.78.0-3.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-httpd-0:2.4.37-80.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_cluster-native-0:1.3.16-10.Final_redhat_2.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_http2-0:1.15.7-22.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_jk-0:1.2.48-29.redhat_1.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_md-1:2.0.8-41.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_security-0:2.9.2-68.GA.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-nghttp2-0:1.39.2-41.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1g-11.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-chil-0:1.0.0-11.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-pkcs11-0:0.4.10-26.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-apr-util-0:1.6.1-91.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-curl-0:7.78.0-3.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-httpd-0:2.4.37-80.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-mod_cluster-native-0:1.3.16-10.Final_redhat_2.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
Red Hat Enterprise Linux 6compat-expat1Out of support scope
Red Hat Enterprise Linux 6libxml2Out of support scope
Red Hat Enterprise Linux 7libxml2Will not fix
Red Hat Enterprise Linux 9libxml2Not affected
23 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-2021-3541.

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
ICSA-21-336-06Hitachi Energy APM Edge2021-12-02EnergyAPM Edge: Version 3.0, APM Edge: Version 2.0, APM Edge: Version 1.0none 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-197 Exponential Data Expansion Likelihood: High · Severity: Medium

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

References

Check your stackJSON