CVE-2024-34394
HIGH 8.1CVSS 3.1libxmljs2 vulnerable to type confusion when parsing specially crafted XML
libxmljs2 is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking the namespaces() function (which invokes XmlNode::get_local_namespaces()) on a grand-child of a node that refers to an entity. This vulnerability can lead to denial of service and remote code execution.
- Published
- 2 May 2024
- Last modified
- 3 Oct 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Deferred
- Weakness
- CWE-843
- Also known as
- GHSA-78h3-pg4x-j8cv
- Sources
- NVDJSONOSV GHSA-78h3-pg4x-j8cvJSON
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.35.0 |
References
- https://github.com/marudor/libxmljs2/issues/205 · WEB
- https://research.jfrog.com/vulnerabilities/libxmljs2-namespaces-type-confusion-rce-jfsa-2024-001034098/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-34394 · 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:10 UTC · OSV: first stored (published 2 May 2024)