CVE-2023-47641
MEDIUM 6.5CVSS 3.1Aiohttp has inconsistent interpretation of `Content-Length` vs. `Transfer-Encoding` differing in C and Python fallbacks
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.
- Published
- 14 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-444
- Also known as
- GHSA-xx9p-xxvh-7g8jPYSEC-2023-247
- Sources
- NVDJSONOSV GHSA-xx9p-xxvh-7g8jJSONOSV PYSEC-2023-247JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | aiohttp | aiohttpcpe:2.3:a:aiohttp:aiohttp:*:*:*:*:*:*:*:* |
< 3.8.0 | 3.8.0 |
| OSV | PyPI | aiohttp | < 3.8.0 | 3.8.0 |
References
- https://github.com/aio-libs/aiohttp/commit/f016f0680e4ace6742b03a70cb0382ce86abe371 · Patch, WEB, FIX
- https://github.com/aio-libs/aiohttp/security/advisories/GHSA-xx9p-xxvh-7g8j · Exploit, Patch, Vendor Advisory, WEB, ADVISORY
- https://lists.debian.org/debian-lts-announce/2025/02/msg00002.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-47641 · ADVISORY
- https://github.com/aio-libs/aiohttp · PACKAGE
- https://github.com/aio-libs/aiohttp/releases/tag/v3.8.0 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/aiohttp/PYSEC-2023-247.yaml · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 14 Nov 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 14 Nov 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 14 Nov 2023)