Advisory

GHSA-24c4-3p7v-29cm

Also known as: CVE-2026-128127

Summary

AIOHTTP: Base64 multipart parts bypass client_max_size

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-11-16 14:53 UTC
Modified
2026-11-16 15:00 UTC

Affected packages and fixes

aiohttp

PyPI · All systems

Affected

  • introduced 0, fixed 3.14.4 (ecosystem)

Fixed versions

3.14.4

Fix

  • Fixed version 3.14.4
    pip install --upgrade aiohttp==3.14.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences