Code execution or crash via attrs type confusion
Published May 2, 2024 · Updated Nov 25, 2024
Type confusion in libxmljs and libxmljs2 0.33.0 and earlier allows attackers to crash applications through crafted XML. The _wrap__xmlNode_properties_get binding treats a libxml2 _xmlEntity created for a DOCTYPE entity as an xmlNode when attrs() is called on a grandchild referencing that entity. Both 32-bit and 64-bit applications can crash; data disclosure, an infinite loop, and code execution additionally require a 32-bit process with XML_PARSE_HUGE enabled.
Summary
What happened
Type confusion in libxmljs and libxmljs2 0.33.0 and earlier allows attackers to crash applications through crafted XML. The _wrap__xmlNode_properties_get binding treats a libxml2 _xmlEntity created for a DOCTYPE entity as an xmlNode when attrs() is called on a grandchild referencing that entity. Both 32-bit and 64-bit applications can crash; data disclosure, an infinite loop, and code execution additionally require a 32-bit process with XML_PARSE_HUGE enabled.
The record
- CVE
- CVE-2024-34393
- Published
- May 2, 2024
- Updated
- Nov 25, 2024
- Vendor
- libxmljs
- Product
- libxmljs
- Classifications
- CWE-843
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 2, 2024CVE publishedPublication date reported by the CVE source.
- Nov 25, 2024Record 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?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=0.33.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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.
Weakness, pattern, technique
Public exploit references
- JFrog attrs type-confusion proof of conceptproof of concept · demonstrated
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