aiohttpのBase64多部分データでリクエストサイズ制限を回避される脆弱性
Summary
aiohttpの3.14.4より前のバージョンでは、Base64で符号化された多部分データの処理に、バイト数の上限チェックが不十分な問題があります。細工したリクエストでclient_max_sizeによるサイズ制限を回避され、メモリを大量に消費されたり処理が止まったりするおそれがあります。修正版の3.14.4で対処されているため、更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
aiohttpの3.14.4より前のバージョンでは、Base64で符号化された多部分データの処理に、バイト数の上限チェックが不十分な問題があります。細工したリクエストでclient_max_sizeによるサイズ制限を回避され、メモリを大量に消費されたり処理が止まったりするおそれがあります。修正版の3.14.4で対処されているため、更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| aio-libsaiohttp | — | Not listed |
| pipaiohttp |
< 3.14.4→ 3.14.4 |
3.14.4 |
| PyPIaiohttp |
< 3.14.4→ 3.14.4 |
3.14.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-128127 python-aiohttp No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-128127 python-aiohttp No fixed version in this record
Original description The description as published by the source.
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, BodyPartReader.read_chunk() processing a multipart part with Content-Transfer-Encoding set to base64 keeps reading until the chunk length is a multiple of four without enforcing a byte limit. A short Content-Length or a long run of whitespace can cause one call to read the remaining body into memory before the size check or spin on the event loop. A remote attacker can send such a multipart request to a handler that reads multipart data and bypass client_max_size. This issue is fixed in version 3.14.4.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com
- web github.com