Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-52303

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

Overview

Published
18 Nov 2024
Modified
17 Jun 2026
High CVE
1 Registry packages
8 OS packages
5 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-772

Affected packages · 1

Packages affected by CVE-2024-52303
EcosystemPackageVulnerableFixed in
PyPI aiohttp >=3.10.6, <3.10.11 3.10.11

Open a package to see all its vulnerabilities.

Operating systems · 10 fixes

chainguard 1 release · 3 packages

fixed 3
airflow py3-aiohttp checkov
chainguard fixes for CVE-2024-52303
ReleasePackageFixed in
airflow 2.10.3-r2
py3-aiohttp 3.10.11-r0
checkov 3.2.432-r0

debian 2 releases · 1 package

fixed 2
python-aiohttp
debian fixes for CVE-2024-52303
ReleasePackageFixed in
13 python-aiohttp 3.10.11-1
14 python-aiohttp 3.10.11-1

echo 1 release · 1 package

fixed 1
python-aiohttp
echo fixes for CVE-2024-52303
ReleasePackageFixed in
python-aiohttp 3.10.11-1

openSUSE 1 release · 1 package

fixed 1
python310-aiohttp
openSUSE fixes for CVE-2024-52303
ReleasePackageFixed inAdvisory
Tumbleweed python310-aiohttp +3 3.11.9-1.1 openSUSE-SU-2024:14556-1

wolfi 1 release · 3 packages

fixed 3
airflow py3-aiohttp checkov
wolfi fixes for CVE-2024-52303
ReleasePackageFixed in
airflow 2.10.3-r2
py3-aiohttp 3.10.11-r0
checkov 3.2.432-r0

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.