CVE-2024-52303

aiohttp memory leak when middleware is enabled when requesting a resource with a non-allowed method

HIGH
7.5
CVSS Score
Published: November 18, 2024 at 08:08 PM UTC
Updated: June 17, 2026 at 08:06 AM UTC
2 products affected across 2 vendorsAiohttpAiohttp

Using aiohttp by aio-libs?

Get instant alerts when new vulnerabilities affect aiohttp - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.6%
SSVC
No known exploit

Description

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. In versions starting with 3.10.6 and prior to 3.10.11, a memory leak can occur when a request produces a MatchInfoError. This was caused by adding an entry to a cache on each request, due to the building of each MatchInfoError producing a unique cache entry. An attacker may be able to exhaust the memory resources of a server by sending a substantial number (100,000s to millions) of such requests. Those who use any middlewares with aiohttp.web should upgrade to version 3.10.11 to receive a patch.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.10.6 ≤ v < 3.10.113.10.6
Affected range stops below 3.10.11, so it looks safe — our inference, not a vendor statement
v < 3.10.11
Affected range stops below 3.10.11, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-772

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card