CVE-2024-52303
published high CVSS 4.0 · 8.7aiohttp memory leak when middleware is enabled when requesting a resource with a non-allowed method
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| aio-libs | — | aiohttp>= 3.10.6, < 3.10.11 | Affected | Not stated | GitHub_M |
| aiohttp | — | aio-libs3.10.6 to < 3.10.11 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpaarch64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpppc64le | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttps390x | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-aiohttpx86_64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpaarch64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpppc64le | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
Show 10 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttps390x | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-aiohttpx86_64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttpaarch64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttpppc64le | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttps390x | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-aiohttpx86_64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpaarch64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpppc64le | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttps390x | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiohttpx86_64 | Advisory build | 3.11.9-1.1 | OPENSUSE-SU-2024:14556-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| aio-libs | aiohttp | >= 3.10.6, < 3.10.11 (affected) | GitHub_M · cna |
| aiohttp | aio-libs | 3.10.6 to < 3.10.11 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-772 CWE-772: Missing Release of Resource after Effective Lifetime
References
2Provider assertions
2GitHub_M · cna
aiohttp memory leak when middleware is enabled when requesting a resource with a non-allowed method
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c838e4460e7261aa313a69db88a5be344a3447533e4247acdcac1d7d68416de4
- Ingested
- 23 Sep 2026, 08:30:39 UTC
- Source record
- Official CVE record