# CVE-2023-47641: Inconsistent interpretation of `Content-Length` vs. `Transfer-Encoding` in aiohttp

- Severity: Low 3.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-11-14T20:36:25.000Z
- Modified: 2026-06-17T06:33:02.030Z
- Also known as: GHSA-xx9p-xxvh-7g8j, PYSEC-2023-247
- Weaknesses: CWE-444
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- aio-libs aiohttp: < 3.8.0
- aiohttp (PyPI): before 3.8.0; before f016f0680e4ace6742b03a70cb0382ce86abe371
- aiohttp aiohttp: before 3.8.0

## Every score

- GitHub_M: CVSS:3.1 3.4 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.4 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/aio-libs/aiohttp/security/advisories/GHSA-xx9p-xxvh-7g8j> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/aio-libs/aiohttp/commit/f016f0680e4ace6742b03a70cb0382ce86abe371> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2023-47641](https://www.cve.org/CVERecord?id=CVE-2023-47641), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-xx9p-xxvh-7g8j](https://github.com/advisories/GHSA-xx9p-xxvh-7g8j), CC-BY-4.0, modified 2025-11-03
- NVD: [CVE-2023-47641](https://nvd.nist.gov/vuln/detail/CVE-2023-47641), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-247](https://osv.dev/vulnerability/PYSEC-2023-247), CC-BY-4.0, modified 2023-11-22

---

Page: https://cve.day/CVE-2023-47641 · Whole record: https://cve.day/CVE-2023-47641.json · Rebuilt by cve.day 2026-11-25T22:58:30.478Z
