critical8.1
CVE-2024-34391
libxmljs vulnerable to type confusion when parsing specially crafted XML
Impact
libxmljs is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking a function on the result of `attrs()` that was called on a parsed node. This vulnerability might lead to denial of service (on both 32-bit systems and 64-bit systems), data leak, infinite loop and remote code execution (on 32-bit systems with the XML_PARSE_HUGE flag enabled).
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | libxmljs | <= 1.0.11 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Libxmljs Project | Libxmljs | before 1.0.11 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/libxmljs/libxmljs/issues/645
- https://research.jfrog.com/vulnerabilities/libxmljs-attrs-type-confusion-rce-jfsa-2024-001033988/
- https://github.com/advisories/GHSA-6433-x5p4-8jc7
- https://nvd.nist.gov/vuln/detail/CVE-2024-34391
- https://research.jfrog.com/vulnerabilities/libxmljs-attrs-type-confusion-rce-jfsa-2024-001033988