CVE-2021-45960

Related Vulnerabilities: CVE-2021-45960  

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

Description

The MITRE CVE dictionary describes this issue as:

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

Additional Information

  • Bugzilla 2044451: CVE-2021-45960 expat: Large number of prefixed XML attributes on a single tag can crash libexpat
  • CWE-400: Uncontrolled Resource Consumption
  • FAQ: Frequently asked questions about CVE-2021-45960