Process crash via prefixed-attribute allocation overflow
Published Jan 1, 2022 · Updated May 5, 2025
Integer overflow in Expat before 2.4.3 allows attackers to crash XML-parsing processes with a tag containing many prefixed attributes. The storeAtts function derives m_nsAttsPower from the prefix count, left-shifts a signed value by at least 29 bits, and passes the resulting nsAttsSize to realloc without rejecting overflow. Reaching the flaw requires a multi-gigabyte XML document; affected operations can allocate too little memory, free memory, or encounter undefined behavior, depending on the architecture and shift count.
Summary
What happened
Integer overflow in Expat before 2.4.3 allows attackers to crash XML-parsing processes with a tag containing many prefixed attributes. The storeAtts function derives m_nsAttsPower from the prefix count, left-shifts a signed value by at least 29 bits, and passes the resulting nsAttsSize to realloc without rejecting overflow. Reaching the flaw requires a multi-gigabyte XML document; affected operations can allocate too little memory, free memory, or encounter undefined behavior, depending on the architecture and shift count.
The record
- CVE
- CVE-2021-45960
- Published
- Jan 1, 2022
- Updated
- May 5, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-190, T1499
- Attack vector
- Unavailable
- Privileges
- Unavailable
Timeline
How it unfolded
- Jan 1, 2022CVE publishedPublication date reported by the CVE source.
- May 5, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Prefixed-attribute XML payload generatorproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo