CVEfocus › CVE database › CVE-2021-3541

CVE-2021-3541

EPSS 2.1% (higher than 82% of CVEs)Published 2021-07-09Updated 2026-10-14Assigner: redhat

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

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

32Fixed
1Fix pending
9Will not fix
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04libxml2Not affected
vulnerable_code_not_present
Ubuntu 20.04libxml2Fixed2.9.10+dfsg-5ubuntu0.20.04.1UBUNTU-CVE-2021-3541
Ubuntu 16.04libxml2Fix pending
Debian 14libxml2Fixed2.9.10+dfsg-6.7DEBIAN-CVE-2021-3541
Debian 13libxml2Fixed2.9.10+dfsg-6.7DEBIAN-CVE-2021-3541
Debian 12libxml2Fixed2.9.10+dfsg-6.7DEBIAN-CVE-2021-3541
Red Hat Enterprise Linux 9libxml2Not affected
Red Hat Enterprise Linux 9libxml2-develNot affected
Red Hat Enterprise Linux 9python3-libxml2Not affected
Red Hat Enterprise Linux 8libxml2Fixed0:2.9.7-9.el8_4.2RHSA-2021:2569
Red Hat Enterprise Linux 8libxml2-develFixed0:2.9.7-9.el8_4.2RHSA-2021:2569
Red Hat Enterprise Linux 8python3-libxml2Fixed0:2.9.7-9.el8_4.2RHSA-2021:2569
Red Hat Enterprise Linux 7libxml2Will not fix
Will not fix
Red Hat Enterprise Linux 7libxml2-develWill not fix
Will not fix
Red Hat Enterprise Linux 7libxml2-pythonWill not fix
Will not fix
Red Hat Enterprise Linux 7libxml2-staticWill not fix
Will not fix
Red Hat Enterprise Linux 6compat-expat1Will not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2Will not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxml2-staticWill not fix
Out of support scope
AlmaLinux 8libxml2-develFixed2.9.7-9.el8_4.2ALSA-2021:2569
Rocky Linux 8libxml2Fixed0:2.9.7-9.el8_4.2RLSA-2021:2569
Alpine Linux 3.24libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.23libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.23qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.22libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.22qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.21libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.21qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.20libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.20qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.19libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.19qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.18libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.18qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.17libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.17qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.16libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.16qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.15libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.15qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.14qt5-qtwebengineFixed5.15.3_git20211112-r0ALPINE-CVE-2021-3541
Alpine Linux 3.13libxml2Fixed2.9.11-r0ALPINE-CVE-2021-3541
Alpine Linux 3.12libxml2Fixed2.9.12-r0ALPINE-CVE-2021-3541
Alpine Linux 3.11libxml2Fixed2.9.12-r0ALPINE-CVE-2021-3541

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.