CVE-2023-37276
python-aiohttp: HTTP request smuggling via llhttp HTTP request parser
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-444
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | aiohttp | <3.8.5 | 3.8.5 |
| Seal PyPI | aiohttp | >=2.3.9+sp0, <2.3.9+sp999>=3.0.8+sp0, <3.0.8+sp999>=3.6.2+sp0, <3.6.2+sp999 | 2.3.9+sp9993.0.8+sp9993.6.2+sp999 |
| Seal PyPI | seal-aiohttp | >=2.3.9+sp1, <2.3.9+sp999>=3.0.8+sp1, <3.0.8+sp999>=3.6.2+sp1, <3.6.2+sp999 | 2.3.9+sp9993.0.8+sp9993.6.2+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 7 fixes
Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-aiohttp +1 | affected |
| 9 | python-aiohttp | wont fix |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | python-aiohttp | affected |
| 13 | python-aiohttp | 3.8.5-1 |
| 14 | python-aiohttp | 3.8.5-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-aiohttp | 3.8.5-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-37276
- github.com https://github.com/aio-libs/aiohttp
- github.com https://github.com/aio-libs/aiohttp/blob/v3.8.4/.gitmodules
- github.com https://github.com/aio-libs/aiohttp/commit/9337fb3f2ab2b5f38d7e98a194bde6f7e3d16c40
- github.com https://github.com/aio-libs/aiohttp/commit/9c13a52c21c23dfdb49ed89418d28a5b116d0681
- github.com https://github.com/aio-libs/aiohttp/security/advisories/GHSA-45c4-8wx5-qw6w
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/aiohttp/PYSEC-2023-120.yaml
- hackerone.com https://hackerone.com/reports/2001873
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-37276
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-37276
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.