{"cve":"CVE-2024-52581","nvd":{"published":"2024-11-20T21:15:08.320","modified":"2026-06-17T08:07:29.360","status":"Modified","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.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L","score":8.2},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-770"],"references":["https://github.com/litestar-org/litestar/blob/main/litestar/_multipart.py#L97","https://github.com/litestar-org/litestar/commit/53c1473b5ff7502816a9a339ffc90731bb0c2138","https://github.com/litestar-org/litestar/security/advisories/GHSA-gjcc-jvgw-wvwj","https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q"],"products":["litestar:litestar"],"source":"nvd","synced_at":"2026-10-19T21:57:34.731061660+00:00"},"epss":{"cve":"CVE-2024-52581","score":0.00794,"percentile":0.56408,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gjcc-jvgw-wvwj","url":"https://osv.dev/vulnerability/GHSA-gjcc-jvgw-wvwj","summary":"Litestar allows unbounded resource consumption (DoS vulnerability) ","modified":"2026-07-07T17:56:22.628214006Z","packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":["<2.13.0"],"fixed":["2.13.0"]},{"ecosystem":"PyPI","name":"starlite","purl":"pkg:pypi/starlite","ranges":["<=1.51.16"],"fixed":[]}]},{"id":"PYSEC-2024-178","url":"https://osv.dev/vulnerability/PYSEC-2024-178","summary":"","modified":"2026-07-07T17:56:22.628214006Z","packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":["<2.13.0"],"fixed":["2.13.0"]}]},{"id":"PYSEC-2026-1944","url":"https://osv.dev/vulnerability/PYSEC-2026-1944","summary":"Litestar allows unbounded resource consumption (DoS vulnerability) ","modified":"2026-07-07T17:56:22.628214006Z","packages":[{"ecosystem":"PyPI","name":"starlite","purl":"pkg:pypi/starlite","ranges":["<=1.51.16"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}