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.

Severity (CVSS 3.1)7.2High
Exploit odds (30 days)0.9%top 40.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12python-aiohttp3.8.4-1+deb12u1DEBIAN-CVE-2023-49081
Debian:12python-aiohttp3.8.4-1+deb12u1DSA-5828-1
Debian:13python-aiohttp3.9.1-1DEBIAN-CVE-2023-49081
Debian:14python-aiohttp3.9.1-1DEBIAN-CVE-2023-49081
PyPIaiohttp3.9.0GHSA-q3qx-c6g2-7pw2
PyPIaiohttp3.9.0PYSEC-2023-250

Affected products (as reported)

VendorProductVersions
aio-libs aiohttp < 3.9.0

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

References