Inadequate file size control In python-aiohttp
Description
AIOHTTP has late size enforcement for non-file multipart fields causes memory DoS
Summary
For some multipart form fields, aiohttp read the entire field into memory before checking client_max_size.
Impact
If an application uses Request.post() an attacker can send a specially crafted multipart request to force significant temporary memory allocation even when the request is ultimately rejected.
Patch: https://github.com/aio-libs/aiohttp/commit/cbb774f38330563422ca0c413a71021d7b944145
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
debian 12 | - | ||
debian 11 | 3.7.4-1+deb11u2 | ||
pypi | 3.13.4 | ||
debian 13 | - | ||
debian 14 | 3.13.5-1 |
Aliases
1. 2. 3. 4. 5. 6. 7.
References
1. 2. 3.