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.

Severity (CVSS 4.0)6.3Medium
Exploit odds (30 days)0.6%top 53.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12python-aiohttp3.8.4-1+deb12u1DEBIAN-CVE-2024-52304
Debian:12python-aiohttp3.8.4-1+deb12u1DSA-5828-1
Debian:13python-aiohttp3.10.11-1DEBIAN-CVE-2024-52304
Debian:14python-aiohttp3.10.11-1DEBIAN-CVE-2024-52304
PyPIaiohttp3.10.11GHSA-8495-4g3g-x7pr
PyPIaiohttp3.10.11PYSEC-2026-1103

Affected products (as reported)

VendorProductVersions
aio-libs aiohttp < 3.10.11

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

References