CVE-2024-34392 libxmljs namespaces type confusion RCE

High 8.1 Published Updated

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.

PackageAffectedFixed in
libxmljs npmAll versions to 1.0.11None
libxmljs npmAll versions to 1.0.11None

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.

Sources

Also known as GHSA-mg49-jqgw-gcj6.

Is CVE-2024-34392 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free