CVE-2022-21716Classic Buffer Overflow in Twisted

Severity
7.5HIGHNVD
EPSS
1.2%
top 20.72%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 3
Latest updateMay 5

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages7 packages

CVEListV5twisted/twisted< 22.2.0
NVDtwisted/twisted21.7.022.2.0
PyPItwisted/twisted21.7.022.2.0
Debiantwisted/twisted< 20.3.0-7+deb11u1+3
Ubuntutwisted/twisted< 17.9.0-2ubuntu0.3+4

Also affects: Debian Linux 9.0, Fedora 35, 36

Patches

🔴Vulnerability Details

6
OSV
twisted vulnerability2022-05-05
OSV
twisted vulnerabilities2022-03-30
OSV
CVE-2022-21716: Twisted is an event-based framework for internet applications, supporting Python 32022-03-03
GHSA
Twisted SSH client and server deny of service during SSH handshake.2022-03-03
CVEList
Buffer Overflow in Twisted2022-03-03

📋Vendor Advisories

4
Ubuntu
Twisted vulnerability2022-05-05
Ubuntu
Twisted vulnerabilities2022-03-30
Red Hat
python-twisted: SSH client and server denial of service during SSH handshake2022-03-03
Debian
CVE-2022-21716: twisted - Twisted is an event-based framework for internet applications, supporting Python...2022
CVE-2022-21716 — Classic Buffer Overflow in Twisted | cvebase