CVE-2023-49082
aiohttp: CRLF injection if user controls the HTTP method using aiohttp client
Overview
Description
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Improper validation makes it possible for an attacker to modify the HTTP request (e.g. insert a new header) or even create a new HTTP request if the attacker controls the HTTP method. The vulnerability occurs only if the attacker can control the HTTP method (GET, POST etc.) of the request. If the attacker can control the HTTP version of the request it will be able to modify the request (request smuggling). This issue has been patched in version 3.9.0.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
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
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness: CWE-20, CWE-93
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | aiohttp | <3.9.0 | 3.9.0 |
| Seal PyPI | aiohttp | >=2.3.9+sp0, <2.3.9+sp999>=3.0.8+sp0, <3.0.8+sp999>=3.8.5+sp0, <3.8.5+sp999 | 2.3.9+sp9993.0.8+sp9993.8.5+sp999 |
| Seal PyPI | seal-aiohttp | >=2.3.9+sp1, <2.3.9+sp999>=3.0.8+sp1, <3.0.8+sp999>=3.8.5+sp1, <3.8.5+sp999 | 2.3.9+sp9993.0.8+sp9993.8.5+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 14 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-aiohttp +1 | affected |
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.5 | python311-aiohttp | 3.8.6-150400.10.11.1 | SUSE-SU-2024:0168-1 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| py3-cassandra-medusa | 0.19.1-r1 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | python-aiohttp | affected |
| 11 | python-aiohttp | 3.7.4-1+deb11u1 |
| 12 | python-aiohttp | 3.8.4-1+deb12u1 |
| 13 | python-aiohttp | 3.9.1-1 |
| 14 | python-aiohttp | 3.9.1-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-aiohttp | 3.8.4-1+deb12u1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | python-aiohttp | 3.0.1-1ubuntu0.1~esm5 |
| 20.04-ESM | python-aiohttp | 3.6.2-1ubuntu1+esm4 |
| 22.04 | python-aiohttp | affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| py3-cassandra-medusa | 0.19.1-r1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-49082
- gist.github.com https://gist.github.com/jnovikov/7f411ae9fe6a9a7804cf162a3bdbb44b
- github.com https://github.com/aio-libs/aiohttp
- github.com https://github.com/aio-libs/aiohttp/commit/4075c653fb67a29740bf9ac050bb02d10a57343a (v3.9.0b1)
- github.com https://github.com/aio-libs/aiohttp/commit/493f06797654c383242f0e8007f6e06b818a1fbc (master)
- github.com https://github.com/aio-libs/aiohttp/commit/e4ae01c2077d2cfa116aa82e4ff6866857f7c466
- github.com https://github.com/aio-libs/aiohttp/pull/7806/files
- github.com https://github.com/aio-libs/aiohttp/security/advisories/GHSA-qvrw-v9rv-5rjx
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/aiohttp/PYSEC-2023-251.yaml
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html
Show all 16 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TY5SI6NK5243DEEDQUFKQKW5GQNKQUMA
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSYWMP64ZFCTC3VO6RY6EC6VSSMV6I3A
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSYWMP64ZFCTC3VO6RY6EC6VSSMV6I3A/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-49082
- ubuntu.com https://ubuntu.com/security/notices/USN-7642-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-49082
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.