Skip to content
OpenAdvisories
High · 7.5 CVE-2022-21716 EUVD-2022-0344GHSA-rv6r-3f5q-9rgxPYSEC-2022-160

Buffer Overflow in Twisted

Published Mar 3, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

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

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.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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Red Hat OpenStack 16 python-twisted +1 16.4.1-19.el8ost RHSA-2022:0992, RHSA-2022:0982
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
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.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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-twisted +1 22.4.0-124.amzn2023.0.2 ALAS2023-2023-056

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI twisted >= 21.7.0, < 22.2.0 22.2.0 GHSA-rv6r-3f5q-9rgx

Advisories 14

References