Skip to content
Fencer Vulns
high 7.5

CVE-2024-52303 json

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

published 2024-11-18 23 mo ago modified 2026-09-10 1 mo ago also EUVD-2024-3176 , GHSA-27mf-ghqm-j3j8 , PYSEC-2026-1096

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 48%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi aiohttp 3.10.11
  • aiohttp aio-libs 3.10.11
  • python-aiohttp Debian 14, Debian 13 3.10.11-1

debian advisories DEBIAN-CVE-2024-52303

  • python-aiohttp openSUSE Tumbleweed 3.11.9-1.1

opensuse advisories openSUSE-SU-2024:14556-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-52303 updated cvss 7.5

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

  • Red Hat Enterprise Linux AI (RHEL AI) bootc-amd-rhel9, bootc-nvidia-rhel9, instructlab-amd-rhel9, bootc-azure-nvidia-rhel9, instructlab-nvidia-rhel9
    affected: workaround, no fix planned “Will not fix”
  • Red Hat OpenShift Lightspeed lightspeed-service-api-rhel9 Red Hat Ansible Automation Platform 1.2 ansible-tower Red Hat Ansible Automation Platform 2 python-aiohttp, automation-controller, aap-cloud-metrics-collector-container, ansible-automation-platform-25/lightspeed-rhel8, ansible-automation-platform-24/de-supported-rhel8, ansible-automation-platform-25/ansible-dev-tools-rhel8, +2 more Red Hat Satellite 6 python-aiohttp, python3-aiohttp Red Hat Update Infrastructure 4 for Cloud Providers python-aiohttp
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
23 mo ago

Exploit prediction

0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CISA ADP 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CNA 4.0 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
pypi aiohttp
>=3.10.6, <3.10.11
3.10.11

Affected products

  • aio-libs aiohttp
  • aiohttp aio-libs

Classification

Weakness
  • CWE-772 Missing Release of Resource after Effective Lifetime

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.