Description
Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 22.2.0, Twisted SSH client and server implement is able to accept an infinite amount of data for the peer's SSH version identifier. This ends up with a buffer using all the available memory. The attach is a simple as `nc -rv localhost 22 < /dev/zero`. A patch is available in version 22.2.0. There are currently no known workarounds.
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.2.0-1 | — |
| Debian 13 | twisted | 22.2.0-1 | — |
| Debian 12 | twisted | 22.2.0-1 | — |
| Debian 9 | twisted | 16.6.0-2+deb9u2 | DLA-2938-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | twisted | 22.1.0-2ubuntu2.1 | USN-5354-2 |
| Ubuntu 20.04 LTS | twisted | 18.9.0-11ubuntu0.20.04.2 | USN-5354-1 |
| Ubuntu 18.04 LTS | twisted | 17.9.0-2ubuntu0.3 | USN-5354-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | twisted | 16.0.0-1ubuntu0.4+esm1 | USN-5354-2 |
| Ubuntu Pro 14.04 LTS | twisted | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 16 | python-twisted +1 | 16.4.1-19.el8ost | RHSA-2022:0992, RHSA-2022:0982 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | python-Twisted | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SLES 15 SP3 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SLES 15 SP2 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SLES 12 | python-Twisted | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP2 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SLE HPC 15 SP2 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE OpenStack Cloud Crowbar 9 | python-Twisted | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-Twisted | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE OpenStack Cloud 9 | python-Twisted | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE OpenStack Cloud 8 | python-Twisted | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE Manager Server 4.1 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE Manager Retail Branch Server 4.1 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE Manager Proxy 4.1 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE HPE Helion OpenStack 8 | python-Twisted | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE Enterprise Storage 7 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-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.12.1 | SUSE-SU-2022:2297-1, SUSE-SU-2022:2070-1 |
| openSUSE Leap 15.3 | python-Twisted | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-twisted | 22.2.0-r0 | — |
| Alpine v3.23 | py3-twisted | 22.2.0-r0 | — |
| Alpine v3.22 | py3-twisted | 22.2.0-r0 | — |
| Alpine v3.21 | py3-twisted | 22.2.0-r0 | — |
| Alpine v3.20 | py3-twisted | 22.2.0-r0 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-twisted | 22.2.0-r0 | — |
| Alpine v3.18 | py3-twisted | 22.2.0-r0 | — |
| Alpine v3.17 | py3-twisted | 22.2.0-r0 | — |
| Alpine v3.16 | py3-twisted | 22.2.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 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | twisted | >= 21.7.0, < 22.2.0 | 22.2.0 | GHSA-rv6r-3f5q-9rgx |
Advisories 14
- WID-SEC-2022-0432 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 11, 2026
- WID-SEC-2022-0302 Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode mit Administratorrechten BSI CERT-Bund (WID) · Oct 11, 2026
- USN-5354-2 twisted vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-5354-1 twisted vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-2938-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:2117-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2070-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2297-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2022:0992 Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-twisted) security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2022:0982 Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (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-0250 Red Hat OpenStack: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 21, 2025
- ALAS2023-2023-056 Important: python-twisted security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023
References
- https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx
- https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9
- https://github.com/twisted/twisted/releases/tag/twisted-22.2.0
- https://twistedmatrix.com/trac/ticket/10284
- [debian-lts-announce] 20220308 [SECURITY] [DLA 2938-1] twisted security update mailing-list
- https://www.oracle.com/security-alerts/cpuapr2022.html
- FEDORA-2022-71b66d4747 vendor-advisory
- FEDORA-2022-9a489fa494 vendor-advisory
- GLSA-202301-02 vendor-advisory