Bug 1217174 (CVE-2023-47641) - VUL-0: CVE-2023-47641: python-aiohttp: inconsistent interpretation of the http protocol
Summary: VUL-0: CVE-2023-47641: python-aiohttp: inconsistent interpretation of the htt...
Status: RESOLVED FIXED
Alias: CVE-2023-47641
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/385161/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-47641:5.4:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-15 11:25 UTC by SMASH SMASH
Modified: 2024-06-10 10:40 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2023-11-15 11:25:46 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-47641
https://github.com/aio-libs/aiohttp/security/advisories/GHSA-xx9p-xxvh-7g8j
Comment 1 Gianluca Gabrielli 2023-11-15 11:26:24 UTC
Affected package:
 - SUSE:SLE-15-SP1:Update/python-aiohttp

Upstream patch: https://github.com/aio-libs/aiohttp/commit/f016f0680e4ace6742b03a70cb0382ce86abe371
Comment 2 Robert Schweikert 2023-11-22 20:23:28 UTC
submitted back to the security team

created request id 313461
Comment 4 Maintenance Automation 2023-12-20 08:36:15 UTC
SUSE-SU-2023:4909-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1217174
CVE References: CVE-2023-47641
Sources used:
openSUSE Leap 15.4 (src): python-aiohttp-3.6.0-150100.3.12.1
openSUSE Leap 15.5 (src): python-aiohttp-3.6.0-150100.3.12.1
Public Cloud Module 15-SP1 (src): python-aiohttp-3.6.0-150100.3.12.1
Public Cloud Module 15-SP2 (src): python-aiohttp-3.6.0-150100.3.12.1
Public Cloud Module 15-SP3 (src): python-aiohttp-3.6.0-150100.3.12.1
Public Cloud Module 15-SP4 (src): python-aiohttp-3.6.0-150100.3.12.1
Public Cloud Module 15-SP5 (src): python-aiohttp-3.6.0-150100.3.12.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 John Paul Adrian Glaubitz 2024-02-15 12:04:58 UTC
Robert, can we close this as fixed?
Comment 6 John Paul Adrian Glaubitz 2024-02-15 15:55:12 UTC
Released.
Comment 8 Maintenance Automation 2024-02-21 12:30:11 UTC
SUSE-SU-2024:0577-1: An update that solves four vulnerabilities and has one security fix can now be installed.

Category: security (important)
Bug References: 1217174, 1217181, 1217782, 1219341, 1219342
CVE References: CVE-2023-47627, CVE-2023-47641, CVE-2024-23334, CVE-2024-23829
Sources used:
openSUSE Leap 15.4 (src): python-aiohttp-3.9.3-150400.10.14.1, python-time-machine-2.13.0-150400.9.3.1
openSUSE Leap 15.5 (src): python-aiohttp-3.9.3-150400.10.14.1
Python 3 Module 15-SP5 (src): python-aiohttp-3.9.3-150400.10.14.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): python-aiohttp-3.9.3-150400.10.14.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): python-aiohttp-3.9.3-150400.10.14.1
SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): python-aiohttp-3.9.3-150400.10.14.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): python-aiohttp-3.9.3-150400.10.14.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): python-aiohttp-3.9.3-150400.10.14.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.