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

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 3.10.11 (CNA); fix release not confirmed
- Status: published
- Published: 2024-11-18 · Modified: 2024-11-19
- Aliases: GHSA-27mf-ghqm-j3j8, PYSEC-2026-1096, UBUNTU-CVE-2024-52303, DEBIAN-CVE-2024-52303, CGA-3fm3-jcq6-4f9w, CGA-c5jp-m4jc-hmqp, CGA-h5x2-278x-jh95, CGA-hvj5-mjcq-33p5, CGA-j3v5-7pvj-3qc4, CGA-j7vx-m7pq-36qc, CGA-qjpx-5ph2-5h8h, CGA-xx6c-9wj7-96mj, openSUSE-SU-2024:14556-1
- Record: https://cvemate.com/vulnerability/CVE-2024-52303 · JSON: https://cvemate.com/vulnerability/CVE-2024-52303/json

## 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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.591%, percentile 49.715%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- aio-libs aiohttp: ≥ 3.10.6, \< 3.10.11
- aiohttp aiohttp: ≥ 3.10.6, \< 3.10.11
- chainguard airflow (Chainguard): \< 2.10.3-r2
- chainguard airflow-bitnami-compat (Chainguard): \< 2.10.3-r2
- chainguard checkov (Chainguard): \< 3.2.432-r0
- chainguard py3-aiohttp (Chainguard): \< 3.10.11-r0
- wolfi airflow (Wolfi): \< 2.10.3-r2
- wolfi airflow-bitnami-compat (Wolfi): \< 2.10.3-r2
- wolfi checkov (Wolfi): \< 3.2.432-r0
- wolfi py3-aiohttp (Wolfi): \< 3.10.11-r0
- debian python-aiohttp (Debian): \< 3.10.11-1
- ubuntu python-aiohttp (Ubuntu): All versions (No fix recorded) \| \< 3.10.11-1build1
- PyPI aiohttp (PyPI): ≥ 3.10.6, \< 3.10.11
- opensuse python-aiohttp&distro=openSUSE Tumbleweed (openSUSE): \< 3.11.9-1.1

## References

- <https://github.com/aio-libs/aiohttp/security/advisories/GHSA-27mf-ghqm-j3j8>
- <https://github.com/aio-libs/aiohttp/commit/bc15db61615079d1b6327ba42c682f758fa96936>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52303>
- <https://github.com/aio-libs/aiohttp>
- <https://pypi.org/project/aiohttp>
- <https://github.com/advisories/GHSA-27mf-ghqm-j3j8>
- <https://ubuntu.com/security/CVE-2024-52303>
- <https://www.cve.org/CVERecord?id=CVE-2024-52303>
- <https://security-tracker.debian.org/tracker/CVE-2024-52303>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52303.json>
- <https://www.suse.com/security/cve/CVE-2024-52303>

---

Data as of 2026-12-05T11:13:43.260Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
