7.5high
AIOHTTP: WebSocket max_msg_size bypass via integer overflow
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.58% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3rp8-rxj8-mvjwPYSEC-2026-4395
Description
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, the C WebSocket reader adds a declared frame length to the size of an already buffered partial message using signed 64-bit arithmetic. A length near two to the power of 63 can overflow, allowing the max_msg_size check to pass. A remote peer can send a small non-final fragment followed by an oversized message and cause unbounded memory consumption. The Python WebSocket reader is unaffected. This issue is fixed in version 3.14.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| aio-libs aiohttp | < 3.14.4 | CVE List |
| aiohttp (PyPI) | before 3.14.4 | GitHub Advisory Database, PyPA Advisory Database |
| aiohttp aiohttp | from 3.14.1 before 3.14.4 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, the C WebSocket reader adds a declared frame length to the size of an already buffered partial message using signed 64-bit arithmetic. A length near two to the power of 63 can overflow, allowing the max_msg_size check to pass. A remote peer can send a small non-final fragment followed by an oversized message and cause unbounded memory consumption. The Python WebSocket reader is unaffected. This issue is fixed in version 3.14.4.
GitHub Advisory Database
Summary
The max_msg_size check in the WebSocket reader added the declared frame length to the size of the partial message already buffered. In the C extension this addition is 64-bit arithmetic, so a declared length close to 2**63 overflowed and the check passed.
Impact
An attacker could bypass max_msg_size and cause unbounded memory use by streaming an oversized WebSocket message after a small non-final fragment.
Workaround
If unable to upgrade, the Python reader is unaffected and can be used with AIOHTTP_NO_EXTENSIONS=1.
Patch: https://github.com/aio-libs/aiohttp/commit/8cfbe9abe5e11b84006a10f9bdf82bf607671dab
References
| https://github.com/aio-libs/aiohttp/security/advisories/GHSA-3rp8-rxj8-mvjw | fix, mitigation, patch, vendor-advisory, web | |
| https://github.com/aio-libs/aiohttp/pull/13415 | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/pull/13494 | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/commit/8c8906a19f64e52ef6a7d44d65217eb3c5af413f | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/commit/8cfbe9abe5e11b84006a10f9bdf82bf607671dab | fix, patch, web | |
| https://github.com/aio-libs/aiohttp/releases/tag/v3.14.4 | advisory, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-128128 | advisory | |
| https://github.com/aio-libs/aiohttp | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-128128 changed 2026-11-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3rp8-rxj8-mvjw changed 2026-11-20 | CC-BY-4.0 |
| NVD | CVE-2026-128128 changed 2026-11-30 | Public domain |
| PyPA Advisory Database | PYSEC-2026-4395 changed 2026-11-20 | CC-BY-4.0 |