CVE-2024-34391 json
libxmljs attrs type confusion RCE
published 2024-05-02 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-1447 , GHSA-6433-x5p4-8jc7
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
libxmljs 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).
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.11% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- research.jfrog.com https://research.jfrog.com/vulnerabilities/libxmljs-attrs-type-confusion-rce-jfsa-2024-001033988/ referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/libxmljs/libxmljs/issues/645 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | libxmljs | <=1.0.11 |
no fix listed |
Affected products
- libxmljs_project libxmljs
Classification
- Weakness
-
- CWE-843 Access of Resource Using Incompatible Type
References
-
research.jfrog.com
/vulnerabilities/libxmljs-attrs-type-confusion-rce-jfsa-2024-001033988/
exploit, third-party-advisory
-
github.com
/libxmljs/libxmljs/issues/645
web, exploit, issue-tracking
-
nvd.nist.gov
/vuln/detail/CVE-2024-34391
advisory
-
github.com
/libxmljs/libxmljs
package
-
research.jfrog.com
/vulnerabilities/libxmljs-attrs-type-confusion-rce-jfsa-2024-001033988
web
Sources
- CVE List CVE-2024-34391
- GitHub Advisory GHSA-6433-x5p4-8jc7
- NVD CVE-2024-34391
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.