CVE-2024-21523 images vulnerable to Denial of Service

High 7.5 Published Updated

Attackers can crash the application by providing unexpected input types or specific integer values to the images library functions.

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-21523?

CVE-2024-21523 is a high-severity denial of service vulnerability in images, published on 10 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of the package images are vulnerable to Denial of Service (DoS) due to providing unexpected input types to several different functions. This makes it possible to reach an assert macro, leading to a process crash. **Note:** By providing some specific integer values (like 0) to the size function, it is possible to obtain a Segmentation fault error, leading to the process crash.

Weakness: CWE-241, CWE-400

Which versions are affected by CVE-2024-21523?

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

PackageAffectedFixed in
images npmAll versions to 3.2.4None
images npmAll versions to 3.2.4None

How do I fix CVE-2024-21523?

No fix has been published for CVE-2024-21523 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-21523 being exploited?

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

Sources

Also known as GHSA-vjpv-x8p9-7p85.

Is CVE-2024-21523 in your software?

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

Check your SBOMs for free