Allocation of Resources Without Limits or Throttling Affecting litestar package, versions [,2.13.0)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-LITESTAR-8400286
- published 21 Nov 2024
- disclosed 20 Nov 2024
- credit Marcel Hellkamp
Introduced: 20 Nov 2024
New CVE-2024-52581 Open this link in a new tabHow to fix?
Upgrade litestar
to version 2.13.0 or higher.
Overview
litestar is a Litestar - A production-ready, highly performant, extensible ASGI API Framework
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the lack of size limits or size checks when reading the request body into memory via await self.body()
.
Note: All Litestar applications that process json
, msgpack
or form-data
submission requests are affected
PoC
Start an applications that accesses
Request.json()
,Request.msgpack()
orRequest.form()
or uses an extractor that relies on those parsers internallyend a large request with a matching content type. The actual content of the request does not matter.
Server memory consumption will increase very quickly until memory (and swap) are exhausted.