CVE-2024-31217 @strapi/plugin-upload has a Denial-of-Service via Improper Exception Handling

Medium 5.3 Published Updated

An attacker with file upload access can crash the Strapi server by triggering an unhandled exception, requiring manual restart to restore service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-31217?

CVE-2024-31217 is a medium-severity denial of service vulnerability in strapi, published on 12 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Strapi is an open-source content management system. Prior to version 4.22.0, a denial-of-service vulnerability is present in the media upload process causing the server to crash without restarting, affecting either development and production environments. Usually, errors in the application cause it to log the error and keep it running for other clients. This behavior, in contrast, stops the server execution, making it unavailable for any clients until it's manually restarted. Any user with access to the file upload functionality is able to exploit this vulnerability, affecting applications running in both development mode and production mode as well. Users should upgrade @strapi/plugin-upload to version 4.22.0 to receive a patch.

Weakness: CWE-248

Which versions are affected by CVE-2024-31217?

2 open source packages ship an affected version, including @strapi/plugin-upload. It affects 1 product.

PackageAffectedFixed in
@strapi/plugin-upload npmAll versions4.22.0
@strapi/plugin-upload npmAll versions4.22.0

Products include Strapi Strapi.

How do I fix CVE-2024-31217?

Upgrade @strapi/plugin-upload to 4.22.0 or later.

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-31217 being exploited?

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

Sources

Also known as GHSA-pm9q-xj9p-96pm.

Is CVE-2024-31217 in your software?

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

Check your SBOMs for free