CVE-2024-34393 libxmljs2 attrs type confusion RCE

High 8.1 Published Updated

A type confusion in libxmljs2 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-34393?

CVE-2024-34393 is a high-severity memory corruption vulnerability in libxmljs2, published on 2 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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).

Weakness: CWE-843

Which versions are affected by CVE-2024-34393?

2 open source packages ship an affected version, including libxmljs2.

PackageAffectedFixed in
libxmljs2 npmAll versions to 0.33.0None
libxmljs2 npmAll versions to 0.33.0None

How do I fix CVE-2024-34393?

No fix has been published for CVE-2024-34393 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-34393 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34393 exists.

Sources

Also known as GHSA-mjr4-7xg5-pfvh.

Is CVE-2024-34393 in your software?

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

Check your SBOMs for free