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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | python-twisted-web | 12.1.0-8.el7_9 | RHSA-2022:4930 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 16 | python-twisted +1 | 16.4.1-20.el8ost | RHSA-2022:1646, RHSA-2022:1645 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | python-twisted-web | 12.1.0-8.el7_9 | ELSA-2022-4930 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | twisted | < 22.4.0 | 22.4.0 | GHSA-c2jg-hw38-jrqq |
Advisories 13
- RHSA-2022:4930 Red Hat Security Advisory: python-twisted-web security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-5576-1 twisted vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-2991-1 twisted - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11978-1 python-Twisted-doc-22.2.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1477-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1546-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2022:1646 Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (python-twisted) security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2022:1645 Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-twisted) security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- WID-SEC-2022-1335 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2025
- WID-SEC-2022-0174 Red Hat OpenStack: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Apr 12, 2023
- ALAS2023-2023-056 Important: python-twisted security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023
- ALAS2-2022-1827 Important: python-twisted-web security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 20, 2022
- ELSA-2022-4930 Important: python-twisted-web security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jun 8, 2022
References
- https://github.com/twisted/twisted/security/advisories/GHSA-c2jg-hw38-jrqq
- https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac
- https://github.com/twisted/twisted/releases/tag/twisted-22.4.0rc1
- [debian-lts-announce] 20220503 [SECURITY] [DLA 2991-1] twisted security update mailing-list
- FEDORA-2022-71b66d4747 vendor-advisory
- FEDORA-2022-9a489fa494 vendor-advisory
- https://www.oracle.com/security-alerts/cpujul2022.html