CVE-2024-52303: aiohttp - Memory Leak
- Cve: CVE-2024-52303
- Name: aiohttp - Memory Leak
- 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.
- Impact: Attackers can exhaust server memory resources, potentially causing denial of service or server crashes.
- Remediation: Upgrade to version 3.10.11 or later.
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00591
- Epss percentile: 0.49188
- Assignee: [email protected]
- Published at: 2024-11-18T20:15:06Z
- Age in days: 736
- Modified at: 2026-06-17T08:06:58Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-52303
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-772 | Missing Release of Resource after Effective Lifetime |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/aio-libs/aiohttp/commit/bc15db61615079d1b6327ba42c682f758fa96936 | nvd | Patch |
| https://github.com/aio-libs/aiohttp/security/advisories/GHSA-27mf-ghqm-j3j8 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| aiohttp:aiohttp | >= 3.10.6, < 3.10.11 | no | nvd | /v1/products/aiohttp/aiohttp |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| aio-libs/aiohttp | commit, fix, package, security_advisory | yes | /v1/repositories/aio-libs/aiohttp |
Index
- Repositories: 382
- Repositories high signal: 241
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts