PyPI: aiohttp
CVE-2026-34517
Safety vulnerability ID: SFTY-20260401-00930
Safety legacy ID: pyup.io-91424
Affected versions of the aiohttp package are vulnerable to Denial of Service due to late enforcement of the client_max_size limit on non-file multipart form fields. When an application uses Request.post() to parse multipart data, the entire field content is read into memory before the size check is applied, allowing oversized payloads to cause significant temporary memory allocation. An attacker can exploit this by sending specially crafted multipart requests to exhaust server memory and degrade service availability.
Overview
AIOHTTP has late size enforcement for non-file multipart fields causes memory DoS
Advisory
Affected versions of the aiohttp package are vulnerable to Denial of Service due to late enforcement of the client_max_size limit on non-file multipart form fields. When an application uses Request.post() to parse multipart data, the entire field content is read into memory before the size check is applied, allowing oversized payloads to cause significant temporary memory allocation. An attacker can exploit this by sending specially crafted multipart requests to exhaust server memory and degrade service availability.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260401-00930/CVE-2026-34517
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34517
- https://data.safetycli.com/changelogs/aiohttp/
- https://github.com/advisories/GHSA-3wq7-rqq7-wx6j
- https://pypi.org/project/aiohttp
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-3wq7-rqq7-wx6j
- https://nvd.nist.gov/vuln/detail/CVE-2026-34517
- https://github.com/aio-libs/aiohttp/commit/cbb774f38330563422ca0c413a71021d7b944145
- https://github.com/aio-libs/aiohttp/releases/tag/v3.13.4
- https://github.com/advisories/GHSA-3wq7-rqq7-wx6j
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
