CVE-2024-31217 @strapi/plugin-upload has a Denial-of-Service via Improper Exception Handling
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.
| Package | Affected | Fixed in |
|---|---|---|
@strapi/plugin-upload npm | All versions | 4.22.0 |
@strapi/plugin-upload npm | All versions | 4.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.
Other vulnerabilities in strapi
- CVE-2023-22894 Strapi Cleartext Storage of Sensitive Information
- CVE-2023-22621 Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin
- CVE-2022-27263 Unrestricted Upload of File with Dangerous Type in Strapi
- CVE-2020-27664 Authorization bypass in Strapi
- CVE-2019-18818 Strapi allows unauthenticated attacker to reset admin password without valid reset token
Sources
Also known as GHSA-pm9q-xj9p-96pm.