Vulnerability · Published Nov 29, 2023 · Assigned by GitHub_M
CVE-2023-49082aiohttp's ClientSession is vulnerable to CRLF injection via method
Medium 5.3
In plain English
A medium-severity improper input validation 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 0.9% (higher than 61% 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. 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-aiohttp | 3.8.4-1+deb12u1 | DEBIAN-CVE-2023-49082 |
| Debian:12 | python-aiohttp | 3.8.4-1+deb12u1 | DSA-5828-1 |
| Debian:13 | python-aiohttp | 3.9.1-1 | DEBIAN-CVE-2023-49082 |
| Debian:14 | python-aiohttp | 3.9.1-1 | DEBIAN-CVE-2023-49082 |
| PyPI | aiohttp | 3.9.0 | GHSA-qvrw-v9rv-5rjx |
| PyPI | aiohttp | 3.9.0 | PYSEC-2023-251 |
Affected products (as reported)
Weakness: CWE-93, CWE-20 · 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-qvrw-v9rv-5rjx x_refsource_CONFIRM
- https://github.com/aio-libs/aiohttp/pull/7806/files x_refsource_MISC
- https://github.com/aio-libs/aiohttp/commit/e4ae01c2077d2cfa116aa82e4ff6866857f7c466 x_refsource_MISC
- https://gist.github.com/jnovikov/7f411ae9fe6a9a7804cf162a3bdbb44b x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WSYWMP64ZFCTC3VO6RY6EC6VSSMV6I3A/