All vulnerabilities

PyPI

CVE-2026-128127

AIOHTTP: Base64 multipart parts bypass client_max_size

Severity
High 7.5
Published
16 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.14.4
Exploit chance
0.8% in the next 30 daysHigher than 57% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-24c4-3p7v-29cm, PYSEC-2026-4394
Sources
OSV.dev and GitHub

Description

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.

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

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
aiohttpPyPI · osv:PyPI:aiohttp
  • Every version before 3.14.4

About aiohttp

Weekly downloads (PyPI)
133,681,616PyPI Stats, 24 Nov 2026

References