CVE-2021-45960: Buffer Overflow

Published Jan 1, 2022
·
Updated

Expat (aka libexpat) is vulnerable to a denial of service, caused by a realloc misbehavior issue in the storeAtts function in xmlparse.c. By persuading a victim to open a specially-crafted XML content, a remote attacker could exploit this vulnerability to cause a the application to crash.

Other sources

expat (libexpat) is susceptible to a software flaw that causes process interruption. When processing a large number of prefixed XML attributes on a single tag can libexpat can terminate unexpectedly due to buffer overrun. The highest threat from this vulnerability is to availability.

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).

Affected Software

19 affected componentsFixes available
redhat/expat<0:2.1.0-14.el7_9
0:2.1.0-14.el7_9
redhat/expat<0:2.2.5-4.el8_5.3
0:2.2.5-4.el8_5.3
debian/expat<=2.2.6-2, <=2.2.10-2, <=2.2.6-2+deb10u1, <=2.4.2-1
2.4.3-12.2.6-2+deb10u22.2.10-2+deb11u1
redhat/expat<2.4.3
2.4.3
IBM Cognos Analytics<=12.0.0-12.0.3
IBM Cognos Analytics<=11.2.0-11.2.4 FP4
Libexpat Project Libexpat<2.4.3
Tenable Nessus<8.15.3
Tenable Nessus>=10.0.0<10.1.1
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Siemens SINEMA Remote Connect Server<3.1
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Hci Baseboard Management Controller=h610c
NetApp Hci Baseboard Management Controller=h610s
NetApp Hci Baseboard Management Controller=h615c
NetApp OnCommand Workflow Automation
NetApp Solidfire \& Hci Management Node
debian/expat
2.2.10-2+deb11u52.2.10-2+deb11u72.5.0-1+deb12u12.7.1-1

Event History

Jan 1, 2022
CVE Published
via MITRE·06:47 PM
Data Sourced
via MITRE·06:47 PM
Description
Jan 24, 2022
Data Sourced
via Red Hat·04:25 PM
DescriptionSeverityAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:02 AM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:48 AM
RemedyDescriptionSeverityAffected Software
Aug 6, 58337
Event
03:42 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-45960?

CVE-2021-45960 is a vulnerability in Expat (libexpat) which can cause process interruption and unexpected termination due to buffer overrun when processing a large number of prefixed XML attributes on a single tag.

2

What is the severity of CVE-2021-45960?

The severity of CVE-2021-45960 is critical with a CVSS score of 8.8.

3

Which software is affected by CVE-2021-45960?

Expat (libexpat) versions prior to 2.4.3 are affected by CVE-2021-45960.

4

How can I fix CVE-2021-45960?

To fix CVE-2021-45960, update Expat (libexpat) to version 2.4.3 or later.

5

Are there any references for CVE-2021-45960?

Yes, you can find references for CVE-2021-45960 at the following links: [Link 1](https://github.com/libexpat/libexpat/issues/531), [Link 2](https://github.com/libexpat/libexpat/pull/534), [Link 3](https://bugzilla.mozilla.org/show_bug.cgi?id=1217609).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203