Vulnerability · Published Nov 18, 2024 · Assigned by GitHub_M
CVE-2024-52304aiohttp vulnerable to request smuggling due to incorrect parsing of chunk extensions
Medium 6.3
In plain English
A medium-severity security flaw in aiohttp from aio-libs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Prior to version 3.10.11, the Python parser parses newlines in chunk extensions incorrectly which can lead to request smuggling vulnerabilities under certain conditions. If a pure Python version of aiohttp is installed (i.e. without the usual C extensions) or `AIOHTTP_NO_EXTENSIONS` is enabled, then an attacker may be able to execute a request smuggling attack to bypass certain firewalls or proxy protections. Version 3.10.11 fixes the issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-aiohttp | 3.8.4-1+deb12u1 | DEBIAN-CVE-2024-52304 |
| Debian:12 | python-aiohttp | 3.8.4-1+deb12u1 | DSA-5828-1 |
| Debian:13 | python-aiohttp | 3.10.11-1 | DEBIAN-CVE-2024-52304 |
| Debian:14 | python-aiohttp | 3.10.11-1 | DEBIAN-CVE-2024-52304 |
| PyPI | aiohttp | 3.10.11 | GHSA-8495-4g3g-x7pr |
| PyPI | aiohttp | 3.10.11 | PYSEC-2026-1103 |
Affected products (as reported)
Weakness: CWE-444 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N