{"id":"CVE-2024-52303","published":"2024-11-18T20:08:15Z","modified":"2024-11-19T14:45:27Z","title":"aiohttp memory leak when middleware is enabled when requesting a resource with a non-allowed method","vendor":"aio-libs","product":"aiohttp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00591,"percentile":0.49193,"provenance":"source"},"cwes":[{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime"}],"references":[{"url":"https://github.com/aio-libs/aiohttp/security/advisories/GHSA-27mf-ghqm-j3j8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/aio-libs/aiohttp/commit/bc15db61615079d1b6327ba42c682f758fa96936","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":9.84},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"aio-libs","affectedVersions":[{"vendor":"aio-libs","product":"aiohttp","versions":[">= 3.10.6, < 3.10.11"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-19T14:39:25.327719Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"aiohttp","vulnerableRanges":[">=3.10.6, <3.10.11"],"patched":["3.10.11"],"from":["GHSA-27mf-ghqm-j3j8","PYSEC-2026-1096"],"provenance":"source"}],"summary":{"text":"A memory leak in aiohttp, the asynchronous HTTP client/server framework for Python, occurs in versions from 3.10.6 up to but not including 3.10.11 when a request produces a MatchInfoError, because each such error adds a unique entry to a cache. An attacker with network access and no authentication or user interaction can exhaust a server's memory by sending a very large number of such requests, which affects servers that use middlewares with aiohttp.web.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:50Z"},"euvd":{"id":"EUVD-2024-3176","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-27306","published":"2024-04-18","fixed":"3.9.4","kev":false},{"cve":"CVE-2024-30251","published":"2024-05-02","fixed":"3.9.4","kev":false},{"cve":"CVE-2024-42367","published":"2024-08-09","fixed":"3.10.2","kev":false},{"cve":"CVE-2024-52303","published":"2024-11-18","fixed":"3.10.11","kev":false},{"cve":"CVE-2024-52304","published":"2024-11-18","fixed":"3.10.11","kev":false},{"cve":"CVE-2025-53643","published":"2025-07-14","fixed":"3.12.14","kev":false,"link":{"from":"CVE-2024-52303","to":"CVE-2025-53643","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:aiohttp","fromFixed":"3.10.11","toFixed":"3.12.14","daysApart":238}]}},{"cve":"CVE-2025-69223","published":"2026-01-05","fixed":"3.13.3","kev":false}],"package":"PyPI:aiohttp"}}