Live threats

All CVEs / Twisted

CVE-2022-21716Twisted

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.2%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Mar 3, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-120, CWE-770
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twisted.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI twisted ≥ 21.7.0 < 22.2.0 22.2.0 pip install "twisted>=22.2.0"
PyPI twisted ≥ 21.7.0 < 22.2.0 22.2.0 pip install "twisted>=22.2.0"

Per OSV / GitHub Advisories (GHSA-rv6r-3f5q-9rgx, PYSEC-2022-160). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
twistedtwisted≥ 21.7.0 < 22.2.0
debiandebian_linux9.0
oraclehttp_server12.2.1.3.0
oraclehttp_server12.2.1.4.0
oraclezfs_storage_appliance_kit8.8
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.