CVE-2023-47641: Inconsistent interpretation of `Content-Length` vs. `Transfer-Encoding` in aiohttp
Vulnerability summary
CVE-2023-47641 is a medium (CVSS 6.5) vulnerability in aio-libs aiohttp. EPSS estimates a 0.83% chance of exploitation in the next 30 days, higher than 57.7% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 3.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 14-11-2023PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. Affected versions of aiohttp have a security vulnerability regarding the inconsistent interpretation of the http protocol. HTTP/1.1 is a persistent protocol, if both Content-Length(CL) and Transfer-Encoding(TE) header values are present it can lead to incorrect interpretation of two entities that parse the HTTP and we can poison other sockets with this incorrect interpretation. A possible Proof-of-Concept (POC) would be a configuration with a reverse proxy(frontend) that accepts both CL and TE headers and aiohttp as backend. As aiohttp parses anything with chunked, we can pass a chunked123 as TE, the frontend entity will ignore this header and will parse Content-Length. The impact of this vulnerability is that it is possible to bypass any proxy rule, poisoning sockets to other users like passing Authentication Headers, also if it is present an Open Redirect an attacker could combine it to redirect random users to another website and log the request. This vulnerability has been addressed in release 3.8.0 of aiohttp. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA3.4LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:NDiffers
- OSV · PypiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.83%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.83% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundAiohttp
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Suse5 products
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP1< 3.6.0-150100.3.12.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP2< 3.6.0-150100.3.12.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP3< 3.6.0-150100.3.12.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP4< 3.6.0-150100.3.12.1
- python-aiohttp&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP5< 3.6.0-150100.3.12.1
Opensuse2 products
- python-aiohttp&distro=openSUSE Leap 15.4< 3.6.0-150100.3.12.1
- python-aiohttp&distro=openSUSE Leap 15.5< 3.6.0-150100.3.12.1
Aio-libs1 product
- aiohttp< 3.8.0
Aiohttp1 product
- aiohttp< 3.8.0
Debian1 product
- python-aiohttp< 3.8.1-1
PyPI1 product
- aiohttp< f016f0680e4ace6742b03a70cb0382ce86abe371 | < 3.8.0
Ubuntu1 product
- python-aiohttpAll versions (No fix recorded)
7 vendors · 12 products
References
13 links- github.com/aio-libs/aiohttp/security/advisories/GHSA-xx9p-xxvh-7g8jX Refsource CONFIRMWEBAdvisoryREPORTExploitPatchVendor Advisory
- github.com/aio-libs/aiohttp/commit/f016f0680e4ace6742b03a70cb0382ce86abe371X Refsource MISCWEBFIXREPORTPatch
- github.com/aio-libs/aiohttpPACKAGE