Vulnerability · Published Jul 19, 2023 · Assigned by GitHub_M

CVE-2023-37276aiohttp vulnerable to HTTP request smuggling

Medium 5.3

In plain English

A medium-severity security flaw in aiohttp from aio-libs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.3%top 28.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. aiohttp v3.8.4 and earlier are bundled with llhttp v6.0.6. Vulnerable code is used by aiohttp for its HTTP request parser when available which is the default case when installing from a wheel. This vulnerability only affects users of aiohttp as an HTTP server (ie `aiohttp.Application`), you are not affected by this vulnerability if you are using aiohttp as an HTTP client library (ie `aiohttp.ClientSession`). Sending a crafted HTTP request will cause the server to misinterpret one of the HTTP header values leading to HTTP request smuggling. This issue has been addressed in version 3.8.5. Users are advised to upgrade. Users unable to upgrade can reinstall aiohttp using `AIOHTTP_NO_EXTENSIONS=1` as an environment variable to disable the llhttp HTTP request parser implementation. The pure Python implementation isn't vulnerable.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-aiohttpno fix listedDEBIAN-CVE-2023-37276
Debian:13python-aiohttp3.8.5-1DEBIAN-CVE-2023-37276
Debian:14python-aiohttp3.8.5-1DEBIAN-CVE-2023-37276
PyPIaiohttp3.8.5GHSA-45c4-8wx5-qw6w
PyPIaiohttp3.8.5PYSEC-2023-120
Ubuntu:22.04:LTSpython-aiohttpno fix listedUBUNTU-CVE-2023-37276

Affected products (as reported)

VendorProductVersions
aio-libs aiohttp < 3.8.5

Weakness: CWE-444 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References