AIOHTTP: Base64 multipart parts bypass client_max_size
Published 16 Nov 2026 · Updated 16 Nov 2026
Is your project on an affected aiohttp?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <3.14.4
- Fixed in
- 3.14.4
pip install 'aiohttp>=3.14.4'Details
Summary
When reading a multipart part with Content-Transfer-Encoding: base64, BodyPartReader.read_chunk() kept reading until the chunk length was a multiple of 4, with no byte limit. A part with a short Content-Length, or a long run of whitespace, could cause the entire remaining body to be read into memory within a single call before any size check, or spin on the event loop.
Impact
An attacker could bypass client_max_size to cause excessive memory use, or block the event loop, with a specially crafted multipart request to any handler that reads multipart data.
---
Patch: https://github.com/aio-libs/aiohttp/commit/a555ab698e08e9baea7386d5b4c0761cb8956fdd
Is GHSA-24c4-3p7v-29cm in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected aiohttp, and gives you the command that fixes it.
More advisories for aiohttp
- HighCVE-2026-128124AIOHTTP: Event loop stall in add_domain() wildcard matching · 16 Nov 2026
- MediumCVE-2026-128125AIOHTTP: Unbounded cookie storage in client CookieJar · 16 Nov 2026
- HighCVE-2026-128126AIOHTTP: Too many URL-encoded form fields block the event loop · 16 Nov 2026
- HighCVE-2026-128128AIOHTTP: WebSocket max_msg_size bypass via integer overflow · 16 Nov 2026
- HighCVE-2026-128129AIOHTTP: Unbounded buffering of data received during an upgrade request · 16 Nov 2026
- HighCVE-2026-128130AIOHTTP: Pure-Python parser request replay and buffer growth behind a declined upgrade · 16 Nov 2026
References
- Linkgithub.com/aio-libs/aiohttp/security/advisories/GHSA-24c4-3p7v-29cm
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-128127
- Linkgithub.com/aio-libs/aiohttp/pull/13509
- Linkgithub.com/aio-libs/aiohttp/pull/13513
- Linkgithub.com/aio-libs/aiohttp/commit/2d9c5c1062eff0034fb3ab120897a6c1b3ff7041
- Linkgithub.com/aio-libs/aiohttp/commit/a555ab698e08e9baea7386d5b4c0761cb8956fdd
- Packagegithub.com/aio-libs/aiohttp
- Linkgithub.com/aio-libs/aiohttp/releases/tag/v3.14.4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.