CVE-2024-34392 libxmljs namespaces type confusion RCE
A type confusion vulnerability in libxmljs allows attackers to achieve remote code execution or denial of service via crafted XML input.
- 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-34392?
CVE-2024-34392 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 the namespaces() function (which invokes _wrap__xmlNode_nsDef_get()) on a grand-child of a node that refers to an entity. This vulnerability can lead to denial of service and remote code execution.
Weakness: CWE-843
Which versions are affected by CVE-2024-34392?
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-34392?
No fix has been published for CVE-2024-34392 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-34392 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34392 exists.
Other vulnerabilities in libxmljs_project:libxmljs
Sources
Also known as GHSA-mg49-jqgw-gcj6.