# CVE-2024-34394: libxmljs2 namespaces type confusion RCE

- Severity: High 8.1 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Published: 2024-05-02T18:57:35.301Z
- Modified: 2026-10-03T10:16:38.343Z
- Also known as: GHSA-78h3-pg4x-j8cv
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: JFROG

## Description

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.

(As written by CVE List.)

## Affected

- libxmljs2: up to 0.37.0
- marudor libxmljs2: *
- libxmljs2 (npm): up to 0.35.0

## Every score

- JFROG: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://research.jfrog.com/vulnerabilities/libxmljs2-namespaces-type-confusion-rce-jfsa-2024-001034098/>
- <https://github.com/marudor/libxmljs2/issues/205> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34394> (advisory)
- <https://github.com/marudor/libxmljs2> (package)
- <https://research.jfrog.com/vulnerabilities/libxmljs2-namespaces-type-confusion-rce-jfsa-2024-001034098> (web)

## Sources

- CVE List: [CVE-2024-34394](https://www.cve.org/CVERecord?id=CVE-2024-34394), CVE Terms of Use, modified 2026-10-03
- GitHub Advisory Database: [GHSA-78h3-pg4x-j8cv](https://github.com/advisories/GHSA-78h3-pg4x-j8cv), CC-BY-4.0, modified 2024-11-25
- NVD: [CVE-2024-34394](https://nvd.nist.gov/vuln/detail/CVE-2024-34394), Public domain, modified 2026-10-03

---

Page: https://cve.day/CVE-2024-34394 · Whole record: https://cve.day/CVE-2024-34394.json · Rebuilt by cve.day 2026-11-25T22:58:39.909Z
