CVE-2024-52303
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-52303
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-52303.html
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | bookworm | fixed | 0 |
| debian | bullseye | fixed | 0 |
| debian | forky | fixed | 3.10.11-1 |
| debian | sid | fixed | 3.10.11-1 |
| debian | trixie | fixed | 3.10.11-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | aiohttp | >=3.10.6,<3.10.11 | 3.10.11 |
References
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-27mf-ghqm-j3j8
- https://nvd.nist.gov/vuln/detail/CVE-2024-52303
- https://github.com/aio-libs/aiohttp/commit/bc15db61615079d1b6327ba42c682f758fa96936
- https://github.com/aio-libs/aiohttp
- https://www.suse.com/security/cve/CVE-2024-52303.html
- https://security-tracker.debian.org/tracker/CVE-2024-52303
Verify integrity in audit chain (admin only). AS-IS.