Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-49082 EUVD-2023-0007GHSA-qvrw-v9rv-5rjxPYSEC-2023-251

aiohttp's ClientSession is vulnerable to CRLF injection via method

Published Nov 29, 2023 · Updated Jun 23, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
aio-libs aiohttp < 3.9.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-aiohttp 3.9.1-1 —
Debian 13 python-aiohttp 3.9.1-1 —
Debian 12 python-aiohttp 3.8.4-1+deb12u1 DSA-5828-1
Debian 11 python-aiohttp 3.7.4-1+deb11u1 DLA-4041-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS python-aiohttp 3.9.1-1ubuntu0.1+esm1 USN-7642-1
Ubuntu Pro 22.04 LTS python-aiohttp 3.8.1-4ubuntu0.2+esm1 USN-7642-1
Ubuntu Pro 20.04 LTS python-aiohttp 3.6.2-1ubuntu1+esm4 USN-7642-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS python-aiohttp 3.0.1-1ubuntu0.1~esm5 USN-7642-1
ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 foreman +1 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 puppetserver 7.14.0-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 python-aiohttp +1 3.9.2-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-django +1 4.2.9-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-galaxy-importer +1 0.4.19-2.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-jinja2 +1 3.1.3-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-pycryptodomex +1 3.20.0-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-pygments +1 2.17.0-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 rubygem-activesupport 6.1.7.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 foreman +14 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 puppetserver 7.14.0-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 python-aiohttp +1 3.9.2-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-django +1 4.2.9-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-galaxy-importer +1 0.4.19-2.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-jinja2 +1 3.1.3-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-pycryptodomex +1 3.20.0-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-pygments +1 2.17.0-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 rubygem-activesupport 6.1.7.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 rubygem-audited 5.4.2-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 rubygem-puma 6.4.2-1.el8sat RHSA-2024:2010
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhui 4 python-aiohttp +1 3.9.2-1.el8ui RHSA-2024:1878
Red Hat Rhui 4 python-cryptography +1 41.0.6-1.el8ui RHSA-2024:1878
Red Hat Rhui 4 python-django +1 4.2.11-1.el8ui RHSA-2024:1878
Red Hat Rhui 4 python-ecdsa +1 0.18.0-4.el8ui RHSA-2024:1878
Red Hat Rhui 4 python-jinja2 +1 3.1.3-1.el8ui RHSA-2024:1878
Red Hat Ansible Automation Platform Inside 2 python-jinja2 +1 3.1.3-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Inside 2 python-pygments +1 2.17.2-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Inside 2 python39-jinja2 +1 3.1.3-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform Inside 2 python39-pygments +1 2.17.2-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python-jinja2 +1 3.1.3-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python-pygments +1 2.17.2-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python39-jinja2 +1 3.1.3-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python39-pygments +1 2.17.2-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 ansible-automation-platform-installer 2.4-6.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 ansible-rulebook +3 1.0.5-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-aiohttp +1 3.9.1-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-django +1 4.2.10-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-jinja2 +1 3.1.3-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-pillow +1 10.0.1-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-pycryptodomex +1 3.20.0-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-pygments +1 2.17.2-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-aiohttp +1 3.9.1-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-django +1 4.2.10-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-jinja2 +1 3.1.3-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-pillow +1 10.0.1-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-pycryptodomex +1 3.20.0-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-pygments +1 2.17.2-1.el8ap RHSA-2024:1057
ReleasePackageFixed inAdvisory
SLES 3 python-aiohttp 3.8.6-150400.10.11.1 SUSE-SU-2024:0168-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 python-aiohttp 3.8.6-150400.10.11.1 SUSE-SU-2024:0168-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3-cassandra-medusa +1 0.19.1-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI aiohttp < 3.9.0 3.9.0 GHSA-qvrw-v9rv-5rjx

Advisories 9

References