Summary
CVE-2026-128127 is an uncontrolled resource consumption (CWE-400) vulnerability in the aiohttp Python HTTP library (aio-libs). Crafted multipart requests can bypass the server’s client_max_size limit and cause excessive memory use or a blocked event loop. The CVE record rates it 8.7 (High) on the CVSS v4.0 scale; the vendor advisory labels it Moderate.
Technical details
- Root cause:
BodyPartReader.read_chunk()handles a multipart part withContent-Transfer-Encoding: base64by reading until the chunk length is a multiple of four, without enforcing a byte limit. - Trigger conditions: the application must parse multipart request bodies with aiohttp’s
BodyPartReader. The attacker sends a multipart part declared as base64. - Attack vector: network, with no authentication or user interaction required (per the CVE record’s vector).
- Impact: the entire remaining request body can be read into memory before size validation occurs. This defeats
client_max_size, and the result is excessive memory use or a blocked event loop (availability impact).
Affected software
- aiohttp versions prior to 3.14.4 (3.14.3 and earlier).
Severity
- CVSS v4.0 base score 8.7 (High):
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N. The CVE record publishes a CVSS v4.0 score, not a v3.1 vector. - The GitHub advisory (GHSA-24c4-3p7v-29cm) lists the severity as Moderate.
Mitigation and recommended actions
- Immediate: upgrade aiohttp to 3.14.4 or later.
- Workarounds: the advisory documents none. Until patching is complete, consider limiting request body sizes at a reverse proxy or load balancer in front of the application. This is a general hardening measure, not a vendor-documented workaround.

