CVE-2022-21716

Buffer Overflow in Twisted

Published Mar 3, 2022 CVSS 3.1 · 7.5 High EPSS 3.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2938-1 twisted security update
EUVD EUVD EUVD-2022-0344 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.
Github GHSA Github GHSA GHSA-rv6r-3f5q-9rgx Twisted SSH client and server deny of service during SSH handshake.
Ubuntu USN Ubuntu USN USN-5354-1 Twisted vulnerabilities
Ubuntu USN Ubuntu USN USN-5354-2 Twisted vulnerability
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Twisted
Twisted twisted
CPEs cpe:2.3:a:twistedmatrix:twisted:*:*:*:*:*:*:*:* cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:*
Vendors & Products Twistedmatrix
Twistedmatrix twisted
Twisted
Twisted twisted
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 22, 2025, 6:21 PM
Reserved
Nov 16, 2021, 12:00 AM
Status
Modified
Published
Mar 3, 2022, 9:15 PM
Modified
Jun 17, 2026, 4:26 AM
Severity
Important
Public date
Mar 3, 2022, 12:00 AM