Skip to content

CVE-2024-52581 Litestar allows unbounded resource consumption (DoS vulnerability)

HighCVSS 8.2 EPSS 0.79%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
litestar < 2.13.0 2.13.0 Fixed
litestar-org litestar < 2.13.0; = < 2.13.0 2.13.0 Fixed
pypi litestar(PyPI) < 2.13.0; <= 2.12.1; = 0.7.2; = 1.0.0a0 +220 more 2.13.0 Fixed
pypi starlite(PyPI) <= 1.51.16; = 0.0.1a0; = 0.1.0; = 0.1.0b1 +139 more after 1.51.16 Fixed

Affected products

ProductAffected versionsFixed in
pypi litestar(PyPI) < 2.13.0 2.13.0
pypi litestar(PyPI) = 1.0.0a0 No fix listed
pypi litestar(PyPI) = 2.0.0 No fix listed
pypi litestar(PyPI) = 2.0.0a3 No fix listed
pypi litestar(PyPI) = 2.0.0a4 No fix listed
pypi litestar(PyPI) = 2.0.0a5 No fix listed
pypi litestar(PyPI) = 2.0.0a6 No fix listed
pypi litestar(PyPI) = 2.0.0a7 No fix listed
pypi litestar(PyPI) = 2.0.0b1 No fix listed
pypi litestar(PyPI) = 2.0.0b2 No fix listed
pypi litestar(PyPI) = 2.0.0b3 No fix listed
pypi litestar(PyPI) = 2.0.0b4 No fix listed
pypi litestar(PyPI) = 2.0.0rc1 No fix listed
pypi litestar(PyPI) = 2.0.1 No fix listed
pypi litestar(PyPI) = 2.1.0 No fix listed
pypi litestar(PyPI) = 2.1.1 No fix listed
pypi litestar(PyPI) = 2.10.0 No fix listed
pypi litestar(PyPI) = 2.11.0 No fix listed
pypi litestar(PyPI) = 2.12.0 No fix listed
pypi litestar(PyPI) = 2.12.1 No fix listed
pypi litestar(PyPI) = 2.2.0 No fix listed
pypi litestar(PyPI) = 2.2.1 No fix listed
pypi litestar(PyPI) = 2.3.0 No fix listed
pypi litestar(PyPI) = 2.3.1 No fix listed
pypi litestar(PyPI) = 2.3.2 No fix listed
Show 175 more
ProductAffected versionsFixed in
pypi litestar(PyPI) = 2.4.0 No fix listed
pypi litestar(PyPI) = 2.4.1 No fix listed
pypi litestar(PyPI) = 2.4.2 No fix listed
pypi litestar(PyPI) = 2.4.3 No fix listed
pypi litestar(PyPI) = 2.4.4 No fix listed
pypi litestar(PyPI) = 2.4.5 No fix listed
pypi litestar(PyPI) = 2.5.0 No fix listed
pypi litestar(PyPI) = 2.5.1 No fix listed
pypi litestar(PyPI) = 2.5.2 No fix listed
pypi litestar(PyPI) = 2.5.3 No fix listed
pypi litestar(PyPI) = 2.5.4 No fix listed
pypi litestar(PyPI) = 2.5.5 No fix listed
pypi litestar(PyPI) = 2.6.0 No fix listed
pypi litestar(PyPI) = 2.6.1 No fix listed
pypi litestar(PyPI) = 2.6.2 No fix listed
pypi litestar(PyPI) = 2.6.3 No fix listed
pypi litestar(PyPI) = 2.6.4 No fix listed
pypi litestar(PyPI) = 2.7.0 No fix listed
pypi litestar(PyPI) = 2.7.1 No fix listed
pypi litestar(PyPI) = 2.7.2 No fix listed
pypi litestar(PyPI) = 2.8.0 No fix listed
pypi litestar(PyPI) = 2.8.1 No fix listed
pypi litestar(PyPI) = 2.8.2 No fix listed
pypi litestar(PyPI) = 2.8.3 No fix listed
pypi litestar(PyPI) = 2.9.0 No fix listed
pypi litestar(PyPI) = 2.9.1 No fix listed
pypi starlite(PyPI) <= 1.51.16 No fix listed
pypi starlite(PyPI) = 0.0.1a0 No fix listed
pypi starlite(PyPI) = 0.1.0 No fix listed
pypi starlite(PyPI) = 0.1.0b1 No fix listed
pypi starlite(PyPI) = 0.1.1 No fix listed
pypi starlite(PyPI) = 0.1.2 No fix listed
pypi starlite(PyPI) = 0.1.3 No fix listed
pypi starlite(PyPI) = 0.1.4 No fix listed
pypi starlite(PyPI) = 0.1.5 No fix listed
pypi starlite(PyPI) = 0.1.6 No fix listed
pypi starlite(PyPI) = 0.2.0 No fix listed
pypi starlite(PyPI) = 0.2.1 No fix listed
pypi starlite(PyPI) = 0.3.0 No fix listed
pypi starlite(PyPI) = 0.4.0 No fix listed
pypi starlite(PyPI) = 0.4.1 No fix listed
pypi starlite(PyPI) = 0.4.2 No fix listed
pypi starlite(PyPI) = 0.4.3 No fix listed
pypi starlite(PyPI) = 0.5.0 No fix listed
pypi starlite(PyPI) = 0.6.0 No fix listed
pypi starlite(PyPI) = 0.7.0 No fix listed
pypi starlite(PyPI) = 0.7.1 No fix listed
pypi starlite(PyPI) = 0.7.2 No fix listed
pypi starlite(PyPI) = 1.0.0 No fix listed
pypi starlite(PyPI) = 1.0.1 No fix listed
pypi starlite(PyPI) = 1.0.2 No fix listed
pypi starlite(PyPI) = 1.0.3 No fix listed
pypi starlite(PyPI) = 1.0.4 No fix listed
pypi starlite(PyPI) = 1.0.5 No fix listed
pypi starlite(PyPI) = 1.1.0 No fix listed
pypi starlite(PyPI) = 1.1.1 No fix listed
pypi starlite(PyPI) = 1.10.0 No fix listed
pypi starlite(PyPI) = 1.10.1 No fix listed
pypi starlite(PyPI) = 1.11.0 No fix listed
pypi starlite(PyPI) = 1.11.1 No fix listed
pypi starlite(PyPI) = 1.12.0 No fix listed
pypi starlite(PyPI) = 1.13.0 No fix listed
pypi starlite(PyPI) = 1.13.1 No fix listed
pypi starlite(PyPI) = 1.14.0 No fix listed
pypi starlite(PyPI) = 1.14.1 No fix listed
pypi starlite(PyPI) = 1.14.2 No fix listed
pypi starlite(PyPI) = 1.15.0 No fix listed
pypi starlite(PyPI) = 1.16.0 No fix listed
pypi starlite(PyPI) = 1.16.1 No fix listed
pypi starlite(PyPI) = 1.16.2 No fix listed
pypi starlite(PyPI) = 1.17.0 No fix listed
pypi starlite(PyPI) = 1.17.1 No fix listed
pypi starlite(PyPI) = 1.17.2 No fix listed
pypi starlite(PyPI) = 1.18.0 No fix listed
pypi starlite(PyPI) = 1.18.1 No fix listed
pypi starlite(PyPI) = 1.19.0 No fix listed
pypi starlite(PyPI) = 1.2.0 No fix listed
pypi starlite(PyPI) = 1.2.2 No fix listed
pypi starlite(PyPI) = 1.2.3 No fix listed
pypi starlite(PyPI) = 1.2.4 No fix listed
pypi starlite(PyPI) = 1.2.5 No fix listed
pypi starlite(PyPI) = 1.20.0 No fix listed
pypi starlite(PyPI) = 1.21.0 No fix listed
pypi starlite(PyPI) = 1.21.1 No fix listed
pypi starlite(PyPI) = 1.21.2 No fix listed
pypi starlite(PyPI) = 1.23.0 No fix listed
pypi starlite(PyPI) = 1.23.1 No fix listed
pypi starlite(PyPI) = 1.24.0 No fix listed
pypi starlite(PyPI) = 1.25.0 No fix listed
pypi starlite(PyPI) = 1.26.0 No fix listed
pypi starlite(PyPI) = 1.26.1 No fix listed
pypi starlite(PyPI) = 1.27.0 No fix listed
pypi starlite(PyPI) = 1.28.0 No fix listed
pypi starlite(PyPI) = 1.28.1 No fix listed
pypi starlite(PyPI) = 1.29.0 No fix listed
pypi starlite(PyPI) = 1.3.0 No fix listed
pypi starlite(PyPI) = 1.3.1 No fix listed
pypi starlite(PyPI) = 1.3.2 No fix listed
pypi starlite(PyPI) = 1.3.3 No fix listed
pypi starlite(PyPI) = 1.3.4 No fix listed
pypi starlite(PyPI) = 1.3.5 No fix listed
pypi starlite(PyPI) = 1.3.6 No fix listed
pypi starlite(PyPI) = 1.3.7 No fix listed
pypi starlite(PyPI) = 1.3.8 No fix listed
pypi starlite(PyPI) = 1.3.9 No fix listed
pypi starlite(PyPI) = 1.30.0 No fix listed
pypi starlite(PyPI) = 1.31.0 No fix listed
pypi starlite(PyPI) = 1.32.0 No fix listed
pypi starlite(PyPI) = 1.33.0 No fix listed
pypi starlite(PyPI) = 1.34.0 No fix listed
pypi starlite(PyPI) = 1.35.0 No fix listed
pypi starlite(PyPI) = 1.35.1 No fix listed
pypi starlite(PyPI) = 1.36.0 No fix listed
pypi starlite(PyPI) = 1.37.0 No fix listed
pypi starlite(PyPI) = 1.38.0 No fix listed
pypi starlite(PyPI) = 1.39.0 No fix listed
pypi starlite(PyPI) = 1.4.0 No fix listed
pypi starlite(PyPI) = 1.4.1 No fix listed
pypi starlite(PyPI) = 1.4.2 No fix listed
pypi starlite(PyPI) = 1.40.0 No fix listed
pypi starlite(PyPI) = 1.40.1 No fix listed
pypi starlite(PyPI) = 1.41.0 No fix listed
pypi starlite(PyPI) = 1.42.0 No fix listed
pypi starlite(PyPI) = 1.43.0 No fix listed
pypi starlite(PyPI) = 1.43.1 No fix listed
pypi starlite(PyPI) = 1.44.0 No fix listed
pypi starlite(PyPI) = 1.45.0 No fix listed
pypi starlite(PyPI) = 1.45.1 No fix listed
pypi starlite(PyPI) = 1.46.0 No fix listed
pypi starlite(PyPI) = 1.47.0 No fix listed
pypi starlite(PyPI) = 1.48.0 No fix listed
pypi starlite(PyPI) = 1.48.1 No fix listed
pypi starlite(PyPI) = 1.49.0 No fix listed
pypi starlite(PyPI) = 1.5.0 No fix listed
pypi starlite(PyPI) = 1.5.1 No fix listed
pypi starlite(PyPI) = 1.5.2 No fix listed
pypi starlite(PyPI) = 1.5.3 No fix listed
pypi starlite(PyPI) = 1.5.4 No fix listed
pypi starlite(PyPI) = 1.50.0 No fix listed
pypi starlite(PyPI) = 1.50.1 No fix listed
pypi starlite(PyPI) = 1.50.2 No fix listed
pypi starlite(PyPI) = 1.51.0 No fix listed
pypi starlite(PyPI) = 1.51.1 No fix listed
pypi starlite(PyPI) = 1.51.10 No fix listed
pypi starlite(PyPI) = 1.51.11 No fix listed
pypi starlite(PyPI) = 1.51.12 No fix listed
pypi starlite(PyPI) = 1.51.13 No fix listed
pypi starlite(PyPI) = 1.51.14 No fix listed
pypi starlite(PyPI) = 1.51.15 No fix listed
pypi starlite(PyPI) = 1.51.16 No fix listed
pypi starlite(PyPI) = 1.51.2 No fix listed
pypi starlite(PyPI) = 1.51.3 No fix listed
pypi starlite(PyPI) = 1.51.4 No fix listed
pypi starlite(PyPI) = 1.51.5 No fix listed
pypi starlite(PyPI) = 1.51.6 No fix listed
pypi starlite(PyPI) = 1.51.7 No fix listed
pypi starlite(PyPI) = 1.51.8 No fix listed
pypi starlite(PyPI) = 1.51.9 No fix listed
pypi starlite(PyPI) = 1.6.0 No fix listed
pypi starlite(PyPI) = 1.6.1 No fix listed
pypi starlite(PyPI) = 1.6.2 No fix listed
pypi starlite(PyPI) = 1.7.0 No fix listed
pypi starlite(PyPI) = 1.7.1 No fix listed
pypi starlite(PyPI) = 1.7.2 No fix listed
pypi starlite(PyPI) = 1.7.3 No fix listed
pypi starlite(PyPI) = 1.8.0 No fix listed
pypi starlite(PyPI) = 1.8.1 No fix listed
pypi starlite(PyPI) = 1.9.0 No fix listed
pypi starlite(PyPI) = 1.9.1 No fix listed
pypi litestar(PyPI) = v2.12.1 No fix listed
pypi litestar(PyPI) = v2.12.0 No fix listed
pypi litestar(PyPI) = v2.11.0 No fix listed
pypi litestar(PyPI) = v2.10.0 No fix listed
pypi litestar(PyPI) = v2.9.0 No fix listed
pypi litestar(PyPI) = v2.7.1 No fix listed

References