aiohttp denial of service in WebSocket frame reassembly
aio-libs aiohttp
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| aiohttp PyPI |
|
|
Original description
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, the WebSocket reader retains one bytes object for each transport read while reassembling an incomplete frame. A malicious peer can split a frame into many tiny reads so per-object overhead substantially exceeds the payload bytes allowed by max_msg_size. The condition affects a server receiving frames from a malicious client and a client receiving frames from a malicious server, and can cause excessive memory consumption or denial of service. This issue is fixed in version 3.14.4.
From the CVE record · GitHub_M
References
- github.com/aio-libs/aiohttp/security/advisories/GHSA-2g87-pp6c-29x5Vendor advisory
- github.com/aio-libs/aiohttp/pull/13352Patch
- github.com/aio-libs/aiohttp/pull/13612Patch
- github.com/aio-libs/aiohttp/commit/09bcaa73ff084a0c539bbf16a0a78743acb7141fPatch
- github.com/aio-libs/aiohttp/commit/6a4f6682817839313b04b8e5cea2b39c1a88ab4fPatch
- github.com/aio-libs/aiohttp/releases/tag/v3.14.4Release notes
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123817.json
- nvd.nist.gov/vuln/detail/CVE-2026-123817
- github.com/aio-libs/aiohttp/commit/0ae507423f681161efa77d20052b4054397c7fb6
- github.com/aio-libs/aiohttp/commit/3d850ee9b92573c7e913821cbcb96005beb3f4df
- github.com/aio-libs/aiohttp/commit/47babd8c23ca79e2bae6cc8dcb5752b61e369fc7
- github.com/aio-libs/aiohttp/commit/615fec3d4f088f30d2ee72cad760152e92aa1c53