Skip to content
OpenAdvisories
High · 8.1 CVE-2022-24801 EUVD-2022-0345GHSA-c2jg-hw38-jrqqPYSEC-2022-195

HTTP Request Smuggling in twisted.web

Published Apr 4, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to version 22.4.0rc1, the Twisted Web HTTP 1.1 server, located in the `twisted.web.http` module, parsed several HTTP request constructs more leniently than permitted by RFC 7230. This non-conformant parsing can lead to desync if requests pass through multiple HTTP parsers, potentially resulting in HTTP request smuggling. Users who may be affected use Twisted Web's HTTP 1.1 server and/or proxy and also pass requests through a different HTTP server and/or proxy. The Twisted Web client is not affected. The HTTP 2.0 server uses a different parser, so it is not affected. The issue has been addressed in Twisted 22.4.0rc1. Two workarounds are available: Ensure any vulnerabilities in upstream proxies have been addressed, such as by upgrading them; or filter malformed requests by other means, such as configuration of an upstream proxy.

Affected products

VendorProductAffectedFixed
twisted twisted <= 22.2.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 twisted 22.4.0-1 —
Debian 13 twisted 22.4.0-1 —
Debian 12 twisted 22.4.0-1 —
Debian 9 twisted 16.6.0-2+deb9u3 DLA-2991-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS twisted 22.1.0-2ubuntu2.3 USN-5576-1
Ubuntu 20.04 LTS twisted No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS twisted No fix yet —
Ubuntu Pro 16.04 LTS twisted No fix yet —
Ubuntu Pro 14.04 LTS twisted No fix yet —
ReleasePackageFixed inAdvisory
RHEL 7 python-twisted-web 12.1.0-8.el7_9 RHSA-2022:4930
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenStack 16 python-twisted +1 16.4.1-20.el8ost RHSA-2022:1646, RHSA-2022:1645
ReleasePackageFixed inAdvisory
SLES 15 SP3 python-Twisted 19.10.0-150200.3.9.1 SUSE-SU-2022:1477-1
SLES 12 python-Twisted 15.2.1-9.14.1 SUSE-SU-2022:1546-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Real Time 15 SP2 python-Twisted 19.10.0-150200.3.9.1 SUSE-SU-2022:1477-1
SUSE OpenStack Cloud Crowbar 9 python-Twisted 15.2.1-9.14.1 SUSE-SU-2022:1546-1
SUSE OpenStack Cloud Crowbar 8 python-Twisted 15.2.1-9.14.1 SUSE-SU-2022:1546-1
SUSE OpenStack Cloud 9 python-Twisted 15.2.1-9.14.1 SUSE-SU-2022:1546-1
SUSE OpenStack Cloud 8 python-Twisted 15.2.1-9.14.1 SUSE-SU-2022:1546-1
SUSE HPE Helion OpenStack 8 python-Twisted 15.2.1-9.14.1 SUSE-SU-2022:1546-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Twisted 22.2.0-1.1 openSUSE-SU-2024:11978-1
openSUSE Leap 15.4 python-Twisted 19.10.0-150200.3.9.1 SUSE-SU-2022:1477-1
openSUSE Leap 15.3 python-Twisted 19.10.0-150200.3.9.1 SUSE-SU-2022:1477-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-twisted 22.4.0-r0 —
Alpine v3.23 py3-twisted 22.4.0-r0 —
Alpine v3.22 py3-twisted 22.4.0-r0 —
Alpine v3.21 py3-twisted 22.4.0-r0 —
Alpine v3.20 py3-twisted 22.4.0-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-twisted 22.4.0-r0 —
Alpine v3.18 py3-twisted 22.4.0-r0 —
Alpine v3.17 py3-twisted 22.4.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-twisted +1 22.4.0-124.amzn2023.0.2 ALAS2023-2023-056
Amazon Linux 2 python-twisted-web 12.1.0-8.amzn2 ALAS2-2022-1827

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 python-twisted-web 12.1.0-8.el7_9 ELSA-2022-4930

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI twisted < 22.4.0 22.4.0 GHSA-c2jg-hw38-jrqq

Advisories 13

References