# CVE-2022-21716: Buffer Overflow in Twisted

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-03-03 · Modified: 2025-04-22
- Aliases: SUSE-SU-2022:2070-1, SUSE-SU-2022:2117-1, SUSE-SU-2022:2297-1, GHSA-rv6r-3f5q-9rgx, PYSEC-2022-160, UBUNTU-CVE-2022-21716, USN-5354-2, DEBIAN-CVE-2022-21716, DLA-2938-1, ALPINE-CVE-2022-21716
- Record: https://cvemate.com/vulnerability/CVE-2022-21716 · JSON: https://cvemate.com/vulnerability/CVE-2022-21716/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 3.51%, percentile 89.558%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 29)

- alpine py3-twisted (Alpine Linux): \< 22.2.0-r0
- debian twisted (Debian): \< 16.6.0-2+deb9u2 \| \< 22.2.0-1
- ubuntu twisted (Ubuntu): \< 13.2.0-1ubuntu1.2+esm2 \| \< 16.0.0-1ubuntu0.4+esm1 \| \< 17.9.0-2ubuntu0.3 \| \< 18.9.0-11ubuntu0.20.04.2 \| \< 22.1.0-2ubuntu2.1
- debian debian\_linux: 9.0
- fedoraproject fedora: 35 \| 36
- oracle http\_server: 12.2.1.3.0 \| 12.2.1.4.0
- oracle zfs\_storage\_appliance\_kit: 8.8
- PyPI twisted (PyPI): \< 89c395ee794e85a9657b112c4351417850330ef9 \| ≥ 21.7.0, \< 22.2.0
- opensuse python-Twisted&distro=openSUSE Leap 15.3 (openSUSE): \< 19.10.0-150200.3.12.1
- opensuse python-Twisted&distro=openSUSE Leap 15.4 (openSUSE): \< 19.10.0-150200.3.12.1 \| \< 22.2.0-150400.5.4.1
- suse python-Twisted&distro=HPE Helion OpenStack 8 (SUSE Linux Enterprise): \< 15.2.1-9.17.1
- suse python-Twisted&distro=SUSE Enterprise Storage 7 (SUSE Linux Enterprise): \< 19.10.0-150200.3.12.1
- suse python-Twisted&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS (SUSE Linux Enterprise): \< 19.10.0-150200.3.12.1
- suse python-Twisted&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS (SUSE Linux Enterprise): \< 19.10.0-150200.3.12.1
- suse python-Twisted&distro=SUSE Linux Enterprise Module for Package Hub 15 SP3 (SUSE Linux Enterprise): \< 19.10.0-150200.3.12.1
- suse python-Twisted&distro=SUSE Linux Enterprise Module for Server Applications 15 SP3 (SUSE Linux Enterprise): \< 19.10.0-150200.3.12.1
- suse python-Twisted&distro=SUSE Linux Enterprise Module for Server Applications 15 SP4 (SUSE Linux Enterprise): \< 22.2.0-150400.5.4.1
- suse python-Twisted&distro=SUSE Linux Enterprise Module for Web and Scripting 12 (SUSE Linux Enterprise): \< 15.2.1-9.17.1
- suse python-Twisted&distro=SUSE Linux Enterprise Server 15 SP2-BCL (SUSE Linux Enterprise): \< 19.10.0-150200.3.12.1
- suse python-Twisted&distro=SUSE Linux Enterprise Server 15 SP2-LTSS (SUSE Linux Enterprise): \< 19.10.0-150200.3.12.1

## References (first 20 of 28)

- <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>
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/>
- <https://security.gentoo.org/glsa/202301-02>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222070-1/>
- <https://bugzilla.suse.com/1196739>
- <https://www.suse.com/security/cve/CVE-2022-21716>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222117-1/>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222297-1/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21716>
- <https://github.com/twisted/twisted/commit/98387b39e9f0b21462f6abc7a1325dc370fcdeb1>
- <https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-160.yaml>
- <https://github.com/twisted/twisted>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6>

---

Data as of 2026-12-05T08:24:22.395Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
