CVE-2024-34393
libxmljs2 type confusion vulnerability when parsing specially crafted XML
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA.
Description
libxmljs2 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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | libxmljs2 | no fix listed |
References
- https://github.com/marudor/libxmljs2
- https://github.com/marudor/libxmljs2/issues/204
- https://nvd.nist.gov/vuln/detail/CVE-2024-34393
- https://research.jfrog.com/vulnerabilities/libxmljs2-attrs-type-confusion-rce-jfsa-2024-001034097
- https://research.jfrog.com/vulnerabilities/libxmljs2-attrs-type-confusion-rce-jfsa-2024-001034097/