CVE-2024-34393
HIGH 8.1CVSS 3.1libxmljs2 type confusion vulnerability when parsing specially crafted XML
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).
- Published
- 2 May 2024
- Last modified
- 3 Oct 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Deferred
- Weakness
- CWE-843
- Also known as
- GHSA-mjr4-7xg5-pfvh
- Sources
- NVDJSONOSV GHSA-mjr4-7xg5-pfvhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | reefs@jfrog.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | libxmljs2 | <= 0.33.0 |
References
- https://research.jfrog.com/vulnerabilities/libxmljs2-attrs-type-confusion-rce-jfsa-2024-001034097/ · WEB
- https://github.com/marudor/libxmljs2/issues/204 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-34393 · ADVISORY
- https://github.com/marudor/libxmljs2 · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 2 May 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 May 2024)