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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.9%top 38.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 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

EcosystemPackageFixed inAdvisory
Debian:12python-aiohttp3.8.4-1+deb12u1DEBIAN-CVE-2023-49082
Debian:12python-aiohttp3.8.4-1+deb12u1DSA-5828-1
Debian:13python-aiohttp3.9.1-1DEBIAN-CVE-2023-49082
Debian:14python-aiohttp3.9.1-1DEBIAN-CVE-2023-49082
PyPIaiohttp3.9.0GHSA-qvrw-v9rv-5rjx
PyPIaiohttp3.9.0PYSEC-2023-251

Affected products (as reported)

VendorProductVersions
aio-libs aiohttp < 3.9.0

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