8.1high
libxmljs2 attrs type confusion RCE
- Severity
- 8.1high CVSS:3.1 by JFROG
- Exploit likelihood
- 0.97% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- JFROG
- Also known as
- GHSA-mjr4-7xg5-pfvh
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
| Product or package | Versions | Reported by |
|---|---|---|
| libxmljs2 | up to 0.37.0 | CVE List |
| libxmljs_project libxmljs | up to 0.33.0 | CVE List |
| libxmljs2 (npm) | up to 0.33.0 | GitHub Advisory Database |
All scores
| JFROG | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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).
GitHub Advisory Database
libxmljs2 is vulnerable to type confusion 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). At the time of publication, there is no fix.
NVD (es)
libxmljs2 es afectada por una vulnerabilidad de confusión de tipos cuando se analiza un XML especialmente manipulado al invocar una función en el resultado de attrs() que se llamó en un nodo analizado. Esta vulnerabilidad podría provocar denegación de servicio (tanto en sistemas de 32 bits como en sistemas de 64 bits), fuga de datos, bucle infinito y ejecución remota de código (en sistemas de 32 bits con el indicador XML_PARSE_HUGE habilitado).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-34393 changed 2026-10-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mjr4-7xg5-pfvh changed 2024-11-25 | CC-BY-4.0 |
| NVD | CVE-2024-34393 changed 2026-10-03 | Public domain |