You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q) No Types Assigned
https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q) Broken Link
CVE Modified by CISA-ADP11/21/2024 10:15:34 AM
Action
Type
Old Value
New Value
Removed
CVSS V3.1
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVE Modified by CISA-ADP11/21/2024 9:15:18 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
New CVE Received from GitHub, Inc.11/20/2024 4:15:08 PM
Action
Type
Old Value
New Value
Added
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.
Added
CVSS V4.0
GitHub, Inc. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Added
CWE
GitHub, Inc. CWE-770
Added
Reference
GitHub, Inc. https://github.com/litestar-org/litestar/blob/main/litestar/_multipart.py#L97 [No types assigned]
Added
Reference
GitHub, Inc. https://github.com/litestar-org/litestar/commit/53c1473b5ff7502816a9a339ffc90731bb0c2138 [No types assigned]
Added
Reference
GitHub, Inc. https://github.com/litestar-org/litestar/security/advisories/GHSA-gjcc-jvgw-wvwj [No types assigned]
Added
Reference
GitHub, Inc. https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q) [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2024-52581 NVD
Published Date: 11/20/2024 NVD
Last Modified: 11/25/2024
Source: GitHub, Inc.