CVE-2024-34391 libxmljs attrs type confusion RCE
A type confusion in libxmljs allows attackers to cause denial of service, data leaks, or remote code execution on 32-bit systems with specific flags.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-34391?
CVE-2024-34391 is a high-severity memory corruption vulnerability in libxmljs_project:libxmljs, published on 2 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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).
Weakness: CWE-843
Which versions are affected by CVE-2024-34391?
2 open source packages ship an affected version, including libxmljs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
libxmljs npm | All versions to 1.0.11 | None |
libxmljs npm | All versions to 1.0.11 | None |
Products include Libxmljs Project Libxmljs.
How do I fix CVE-2024-34391?
No fix has been published for CVE-2024-34391 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-34391 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34391 exists.
Other vulnerabilities in libxmljs_project:libxmljs
Sources
Also known as GHSA-6433-x5p4-8jc7.