critical8.1
CVE-2024-34392
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 the `namespaces()` function (which invokes `_wrap__xmlNode_nsDef_get()`) on a grand-child of a node that refers to an entity. This vulnerability can lead to denial of service and remote code execution.
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/646
- https://research.jfrog.com/vulnerabilities/libxmljs-namespaces-type-confusion-rce-jfsa-2024-001034096/
- https://github.com/advisories/GHSA-mg49-jqgw-gcj6
- https://nvd.nist.gov/vuln/detail/CVE-2024-34392
- https://research.jfrog.com/vulnerabilities/libxmljs-namespaces-type-confusion-rce-jfsa-2024-001034096