{"id":"CVE-2024-52581","published":"2024-11-20T20:50:19Z","modified":"2024-11-25T13:46:28Z","title":"Litestar allows unbounded resource consumption (DoS vulnerability)","vendor":"litestar-org","product":"litestar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01208,"percentile":0.68255,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-gjcc-jvgw-wvwj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q","tags":["x_refsource_MISC"]},{"url":"https://github.com/litestar-org/litestar/commit/53c1473b5ff7502816a9a339ffc90731bb0c2138","tags":["x_refsource_MISC"]},{"url":"https://github.com/litestar-org/litestar/blob/main/litestar/_multipart.py#L97","tags":["x_refsource_MISC"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":13.65},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"litestar-org","affectedVersions":[{"vendor":"litestar-org","product":"litestar","versions":["< 2.13.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-21T14:05:15.626887Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"litestar","vulnerableRanges":["<2.13.0"],"patched":["2.13.0"],"from":["GHSA-gjcc-jvgw-wvwj","PYSEC-2024-178"],"provenance":"source"},{"ecosystem":"PyPI","package":"starlite","vulnerableRanges":["<=1.51.16"],"patched":[],"from":["GHSA-gjcc-jvgw-wvwj","PYSEC-2026-1944"],"provenance":"source"}],"summary":{"text":"Litestar's multipart form parser, which is shipped with the litestar ASGI framework, reads the entire request body as a single byte string and imposes no default limit on total request body size. An unauthenticated remote attacker with network access can send an oversized multipart/form-data request, requiring no authentication or user interaction and no special configuration, to exhaust server memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:45:35Z"},"euvd":{"id":"EUVD-2024-0214","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-starlite-api-starlite-cve-2023-25578","parents":[{"from":"CVE-2023-25578","to":"CVE-2024-52581","relation":"variant","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"variant","quote":"This may be a regression, as a variation of this issue was already reported in CVE-2023-25578.","from":"CVE.org","in":"CVE-2024-52581"},{"kind":"osv-related","provenance":"source","id":"GHSA-p24m-863f-fm6q","via":"related"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2024-178","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-gjcc-jvgw-wvwj","via":"reference","url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2024-178","via":"reference","url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2026-1944","via":"reference","url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q"}]}],"packageHistory":[{"cve":"CVE-2024-32982","published":"2024-05-06","fixed":"2.8.3","kev":false,"link":{"from":"CVE-2024-32982","to":"CVE-2024-52581","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:litestar","fromFixed":"2.8.3","toFixed":"2.13.0","daysApart":198}]}},{"cve":"CVE-2024-52581","published":"2024-11-20","fixed":"2.13.0","kev":false},{"cve":"CVE-2025-59152","published":"2025-10-06","fixed":"2.18.0","kev":false},{"cve":"CVE-2026-25478","published":"2026-02-09","fixed":"2.20.0","kev":false},{"cve":"CVE-2026-25479","published":"2026-02-09","fixed":"2.20.0","kev":false}],"package":"PyPI:litestar"}}