Vulnerability · Published Nov 30, 2023 · Assigned by GitHub_M
CVE-2023-49081aiohttp's ClientSession is vulnerable to CRLF injection via version
High 7.2
In plain English
A high-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 59% 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 made it possible for an attacker to modify the HTTP request (e.g. to insert a new header) or create a new HTTP request if the attacker controls the HTTP version. The vulnerability only occurs if the attacker can control the HTTP version of the request. 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-49081 |
| Debian:12 | python-aiohttp | 3.8.4-1+deb12u1 | DSA-5828-1 |
| Debian:13 | python-aiohttp | 3.9.1-1 | DEBIAN-CVE-2023-49081 |
| Debian:14 | python-aiohttp | 3.9.1-1 | DEBIAN-CVE-2023-49081 |
| PyPI | aiohttp | 3.9.0 | GHSA-q3qx-c6g2-7pw2 |
| PyPI | aiohttp | 3.9.0 | PYSEC-2023-250 |
Affected products (as reported)
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
References
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-q3qx-c6g2-7pw2 x_refsource_CONFIRM
- https://github.com/aio-libs/aiohttp/pull/7835/files x_refsource_MISC
- https://github.com/aio-libs/aiohttp/commit/1e86b777e61cf4eefc7d92fa57fa19dcc676013b x_refsource_MISC
- https://gist.github.com/jnovikov/184afb593d9c2114d77f508e0ccd508e 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/