HIGH · CVSS 3.1 7.5 EPSS 0.9% · 59th percentile CWE-400

CVE-2026-128127: AIOHTTP: Base64 multipart parts bypass client_max_size

Published 2026-11-13 · Updated 2026-11-20 · Also known as GHSA-24c4-3p7v-29cm, PYSEC-2026-4394

Summary

AIOHTTP contains a vulnerability where base64 encoded multipart parts bypass client_max_size checks, leading to excessive memory use or event loop blocking. Engineering teams using aiohttp must update their packages to the fixed version.

Who is affected

Deployments handling multipart requests via AIOHTTP are affected if an attacker sends a specially crafted request with a short Content-Length or a long run of whitespace and base64 encoding. This condition allows the parser to read the entire remaining body into memory in a single call or spin the event loop, causing a denial of service.

Exploitability

The vulnerability is remotely exploitable over a network without requiring authentication or user interaction with a CVSS base score of 7.5. The current EPSS score is 0.005 with a percentile of 0.466, and CISA KEV status is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI aiohttp >= 0, < 3.14.4 3.14.4 python -m pip install 'aiohttp>=3.14.4'

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

What packages are affected?

The PyPI package aiohttp is affected for versions introduced at 0 and fixed in 3.14.4.

What is the security impact of this vulnerability?

An attacker can bypass client_max_size limits to cause excessive memory consumption or block the event loop, resulting in a denial of service.

Is this vulnerability actively being exploited in the wild?

No, CISA Known Exploited Vulnerabilities status is no.

Original advisory description
### 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

References

Source records: GHSA-24c4-3p7v-29cm, PYSEC-2026-4394 (OSV.dev) · EPSS by FIRST, 2026-11-26.