Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2021-45960 EUVD-2021-32666GHSA-pfmv-2r4f-j9mj

In Expat (aka libexpat) before 2.4.3, a left shift by 29 (or more) places in the storeAtts function in xmlparse.c can lead to realloc misbe…

Published Jan 1, 2022 · Updated Oct 14, 2026 · Assigned by mitre

Description

In Expat (aka libexpat) before 2.4.3, a left shift by 29 (or more) places in the storeAtts function in xmlparse.c can lead to realloc misbehavior (e.g., allocating too few bytes, or only freeing memory).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 expat 2.4.3-1 —
Debian 13 expat 2.4.3-1 —
Debian 12 expat 2.4.3-1 —
Debian 12 libxmltok No fix yet —
Debian 11 expat 2.2.10-2+deb11u1 DSA-5073-1
Debian 10 expat 2.2.6-2+deb10u2 DSA-5073-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 expat 2.2.0-2+deb9u4 DLA-2904-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 tdom +5 No fix yet —
Ubuntu 26.04 LTS tdom +4 No fix yet —
Ubuntu 25.10 tdom +5 No fix yet —
Ubuntu 24.04 LTS tdom +3 No fix yet —
Ubuntu 22.04 LTS expat 2.4.3-1 —
Ubuntu 22.04 LTS firefox 1:1snap1-0ubuntu1 —
Ubuntu 22.04 LTS tdom +3 No fix yet —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS expat 2.2.9-1ubuntu0.2 USN-5288-1
Ubuntu 20.04 LTS firefox 98.0+build3-0ubuntu0.20.04.2 —
Ubuntu 20.04 LTS tdom +3 No fix yet —
Ubuntu 18.04 LTS expat 2.2.5-3ubuntu0.4 USN-5288-1
Ubuntu 18.04 LTS firefox 98.0+build3-0ubuntu0.18.04.2 —
Ubuntu 18.04 LTS tdom +4 No fix yet —
Ubuntu 16.04 LTS tdom +4 No fix yet —
Ubuntu Pro 26.04 LTS swish-e No fix yet —
Ubuntu Pro 24.04 LTS swish-e +1 No fix yet —
Ubuntu Pro 22.04 LTS swish-e +1 No fix yet —
Ubuntu Pro 20.04 LTS swish-e +1 No fix yet —
Ubuntu Pro 18.04 LTS coin3 +2 No fix yet —
Ubuntu Pro 16.04 LTS expat 2.1.0-7ubuntu0.16.04.5+esm2 USN-5288-1
Ubuntu Pro 16.04 LTS vtk +7 No fix yet —
Ubuntu Pro 14.04 LTS expat 2.1.0-4ubuntu1.4+esm4 USN-5288-1
Ubuntu Pro 14.04 LTS vtk +3 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 expat +1 2.2.5-4.el8_5.3 RHSA-2022:0951
RHEL 7 expat +2 2.1.0-14.el7_9 RHSA-2022:1069
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.4 EUS Long Life expat 2.2.10-1.el8_4 RHSA-2025:22785
RHEL 8.4 AUS expat 2.2.10-1.el8_4 RHSA-2025:22785
RHEL 8.2 AUS expat 2.2.10-1.el8_2 RHSA-2025:22871

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 expat +1 2.2.5-8.el8_6.2 ALSA-2022:0951

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 expat 2.2.5-4.el8_5.3 RLSA-2022:0951
ReleasePackageFixed inAdvisory
SLES 15 SP3 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLES 15 SP2 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLES 15 SP1 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLES 15 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLES 12 SP5 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
Show 26 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SLES 12 SP3 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SLES 12 SP2 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SLES 11 SP4 expat 2.0.1-88.42.12.1 SUSE-SU-2022:14878-1
SLES for SAP 15 SP2 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLES for SAP 15 SP1 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLES for SAP 15 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLES for SAP 12 SP5 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SLES for SAP 12 SP4 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SLES for SAP 12 SP3 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SLE Micro 5.1 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLE Micro 5.0 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLE HPC 15 SP2 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLE HPC 15 SP1 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SLE HPC 15 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SUSE OpenStack Cloud Crowbar 9 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SUSE OpenStack Cloud Crowbar 8 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SUSE OpenStack Cloud 9 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SUSE OpenStack Cloud 8 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SUSE Manager Server 4.1 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SUSE Manager Retail Branch Server 4.1 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SUSE Manager Proxy 4.1 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SUSE Linux Enterprise Point of Sale 11 SP3 expat 2.0.1-88.42.12.1 SUSE-SU-2022:14878-1
SUSE HPE Helion OpenStack 8 expat 2.1.0-21.12.1 SUSE-SU-2022:0179-1
SUSE Enterprise Storage 7 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
SUSE Enterprise Storage 6 expat 2.2.5-3.9.1 SUSE-SU-2022:0178-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed expat 2.4.3-1.1 openSUSE-SU-2024:11762-1
openSUSE Leap 15.3 expat 2.2.5-3.9.1 openSUSE-SU-2022:0178-1
ReleasePackageFixed inAdvisory
Alpine v3.24 expat 2.4.3-r0 —
Alpine v3.23 expat 2.4.3-r0 —
Alpine v3.22 expat 2.4.3-r0 —
Alpine v3.21 expat 2.4.3-r0 —
Alpine v3.20 expat 2.4.3-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 expat 2.4.3-r0 —
Alpine v3.18 expat 2.4.3-r0 —
Alpine v3.17 expat 2.4.3-r0 —
Alpine v3.16 expat 2.4.3-r0 —
Alpine v3.15 expat 2.4.3-r0 —
Alpine v3.14 expat 2.4.3-r0 —
Alpine v3.13 expat 2.2.10-r2 —
Alpine v3.12 expat 2.2.10-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 expat +2 2.5.0-1.amzn2023.0.2 ALAS2023-2023-058
Amazon Linux 2 expat +2 2.1.0-12.amzn2.0.4 ALAS2-2022-1788

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) expat 2.4.3-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 expat +1 2.2.5-4.el8_5.3 ELSA-2022-0951
Oracle Linux 7 expat +2 2.1.0-14.0.1.el7_9 ELSA-2022-1069

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 31

References