CVE-2022-21716
HIGH 7.5CVSS 3.1Twisted SSH client and server deny of service during SSH handshake.
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.
- Published
- 3 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-120CWE-770
- Also known as
- GHSA-rv6r-3f5q-9rgxPYSEC-2022-160
- Sources
- NVDJSONOSV GHSA-rv6r-3f5q-9rgxJSONOSV PYSEC-2022-160JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | twisted | twistedcpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:* |
>= 21.7.0, < 22.2.0 | 22.2.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | oracle | http_servercpe:2.3:a:oracle:http_server:12.2.1.3.0:*:*:*:*:*:*:* |
= 12.2.1.3.0 | |
| NVD | oracle | http_servercpe:2.3:a:oracle:http_server:12.2.1.4.0:*:*:*:*:*:*:* |
= 12.2.1.4.0 | |
| NVD | oracle | zfs_storage_appliance_kitcpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:* |
= 8.8 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
= 36 | |
| OSV | PyPI | twisted | >= 21.7.0, < 22.2.0 | 22.2.0 |
References
- https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/twisted/twisted/releases/tag/twisted-22.2.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx · Exploit, Patch, Third Party Advisory, WEB, ADVISORY
- https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/ · WEB
- https://security.gentoo.org/glsa/202301-02 · Third Party Advisory, WEB
- https://twistedmatrix.com/trac/ticket/10284 · Issue Tracking, Vendor Advisory, WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21716 · ADVISORY
- https://github.com/twisted/twisted/commit/98387b39e9f0b21462f6abc7a1325dc370fcdeb1 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-160.yaml · WEB
- https://github.com/twisted/twisted · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 3 Mar 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Mar 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Mar 2022)