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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-aiohttp | no fix listed | DEBIAN-CVE-2023-37276 |
| Debian:13 | python-aiohttp | 3.8.5-1 | DEBIAN-CVE-2023-37276 |
| Debian:14 | python-aiohttp | 3.8.5-1 | DEBIAN-CVE-2023-37276 |
| PyPI | aiohttp | 3.8.5 | GHSA-45c4-8wx5-qw6w |
| PyPI | aiohttp | 3.8.5 | PYSEC-2023-120 |
| Ubuntu:22.04:LTS | python-aiohttp | no fix listed | UBUNTU-CVE-2023-37276 |
Affected products (as reported)
Weakness: CWE-444 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-45c4-8wx5-qw6w x_refsource_CONFIRM
- https://github.com/aio-libs/aiohttp/commit/9337fb3f2ab2b5f38d7e98a194bde6f7e3d16c40 x_refsource_MISC
- https://hackerone.com/reports/2001873 x_refsource_MISC
- https://github.com/aio-libs/aiohttp/blob/v3.8.4/.gitmodules x_refsource_MISC