Skip to content

Late size enforcement for non-file multipart fields causes memory DoS

Moderate
Dreamsorcerer published GHSA-3wq7-rqq7-wx6j Mar 31, 2026

Package

pip aiohttp (pip)

Affected versions

<=3.13.3

Patched versions

3.13.4

Description

Summary

For some multipart form fields, aiohttp read the entire field into memory before checking client_max_size.

Impact

If an application uses Request.post() an attacker can send a specially crafted multipart request to force significant temporary memory allocation even when the request is ultimately rejected.


Patch: cbb774f

Severity

Moderate

CVE ID

CVE-2026-34517

Weaknesses

No CWEs

Credits