CVE-2024-52581

Public Exploit
Litestar allows unbounded resource consumption (DoS vulnerability)

Description

Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 2.13.0, the multipart form parser shipped with litestar expects the entire request body as a single byte string and there is no default limit for the total size of the request body. This allows an attacker to upload arbitrary large files wrapped in a `multipart/form-data` request and cause excessive memory consumption on the server. The multipart form parser in affected versions is vulnerable to this type of attack by design. The public method signature as well as its implementation both expect the entire request body to be available as a single byte string. It is not possible to accept large file uploads in a safe way using this parser. This may be a regression, as a variation of this issue was already reported in CVE-2023-25578. Limiting the part number is not sufficient to prevent out-of-memory errors on the server. A patch is available in version 2.13.0.

Category

8.2
CVSS
Severity: High
CVSS 4.0 •
CVSS 3.1 •
EPSS 0.32%
Vendor Advisory github.com
Affected: litestar-org litestar
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-52581?
CVE-2024-52581 has been scored as a high severity vulnerability.
How to fix CVE-2024-52581?
To fix CVE-2024-52581, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-52581 being actively exploited in the wild?
It is possible that CVE-2024-52581 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-52581?
CVE-2024-52581 affects litestar-org litestar.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.