CVE-2024-34391 libxmljs attrs type confusion RCE

High 8.1 Published Updated

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.

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

Sources

Also known as GHSA-6433-x5p4-8jc7.

Is CVE-2024-34391 in your software?

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

Check your SBOMs for free