Allocation of Resources Without Limits or Throttling Affecting aiohttp package, versions [,3.14.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.49% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-AIOHTTP-22606109
  • published19 Nov 2026
  • disclosed16 Nov 2026
  • creditAxel Mierczuk

Introduced: 16 Nov 2026

NewCVE-2026-128128  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade aiohttp to version 3.14.4 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via an integer overflow in the max_msg_size check inside the WebSocket reader's C extension. The check computes the projected message size by adding the declared frame length to the length of the already-buffered partial message using 64-bit signed arithmetic, so a declared frame length close to 2**63 causes the sum to overflow, the check passes, and an attacker can stream an oversized WebSocket message after a small non-final fragment, causing unbounded memory consumption.

Note: This is only exploitable when the C extension is in use (the default); the pure-Python reader is not affected.

Workaround

Set the environment variable AIOHTTP_NO_EXTENSIONS=1 to force use of the Python reader, which does not perform the overflowing addition.

CVSS Base Scores

version 4.0
version 3.1