We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-52581

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.

Reserved 2024-11-14 | Published 2024-11-20 | Updated 2024-11-25 | Assigner GitHub_M


HIGH: 8.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L

Problem types

CWE-770: Allocation of Resources Without Limits or Throttling

Product status

< 2.13.0
affected

References

github.com/...testar/security/advisories/GHSA-gjcc-jvgw-wvwj

github.com/...testar/security/advisories/GHSA-p24m-863f-fm6q

github.com/...ommit/53c1473b5ff7502816a9a339ffc90731bb0c2138

github.com/...-org/litestar/blob/main/litestar/_multipart.py

cve.org (CVE-2024-52581)

nvd.nist.gov (CVE-2024-52581)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-52581

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.