ADVISORIES

Vulnerability

CVE-2022-21716

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.

20 advisories report this vulnerability, across 9 ecosystems.

Advisories

  • ALAS2023-2023-056

    Amazon Linux 2023 - ALAS2023-2023-056: Important priority package update for python-twisted

    Important CVE-2022-21712CVE-2022-21716CVE-2022-24801 Amazon Linux Updated 22 February 2023
  • ALPINE-CVE-2022-21716

    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…

    CVE-2022-21716 Alpine Updated 20 November 2026
  • ALPINE-EDGE-CVE-2022-21716
    CVE-2022-21716 Alpine Updated 18 November 2026
  • DEBIAN-CVE-2022-21716

    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…

    CVE-2022-21716 Debian Updated 20 November 2026
  • DLA-2938-1

    twisted - security update

    CVE-2022-21716 Debian Updated 20 November 2026
  • GHSA-rv6r-3f5q-9rgx

    Twisted SSH client and server deny of service during SSH handshake.

    High CVE-2022-21716 PyPI Updated 25 November 2024
  • OESA-2023-1908

    python-twisted security update

    High CVE-2022-21712CVE-2022-21716CVE-2022-24801CVE-2022-39348 openEuler Updated 18 August 2026
  • OESA-2023-1909

    python-twisted security update

    High CVE-2022-21712CVE-2022-21716CVE-2022-24801CVE-2022-39348 openEuler Updated 18 August 2026
  • OESA-2023-1970

    python-twisted security update

    High CVE-2022-21712CVE-2022-21716CVE-2022-24801CVE-2022-39348 openEuler Updated 18 August 2026
  • PYSEC-2022-160

    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…

    CVE-2022-21716 PyPI Updated 8 November 2023
  • RHSA-2022:0982

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (python-twisted) security update

    CVE-2022-21712CVE-2022-21716 Red Hat Updated 13 November 2026
  • RHSA-2022:0992

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-twisted) security update

    CVE-2022-21712CVE-2022-21716 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2022-21716

    python-twisted: SSH client and server denial of service during SSH handshake

    Important CVE-2022-21716 Red Hat Updated 4 November 2026
  • SUSE-SU-2022:2070-1

    Security update for python-Twisted

    CVE-2022-21716 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2022:2117-1

    Security update for python-Twisted

    CVE-2022-21716 SUSE Updated 4 February 2026
  • SUSE-SU-2022:2297-1

    Security update for python-Twisted

    CVE-2022-21716 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2022-21716

    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…

    CVE-2022-21716 Ubuntu Updated 4 February 2026
  • USN-5354-1

    twisted vulnerabilities

    CVE-2022-21712CVE-2022-21716 Ubuntu Updated 27 April 2026
  • USN-5354-2

    twisted vulnerability

    CVE-2022-21716 Ubuntu Updated 29 June 2026
  • openSUSE-SU-2024:11978-1

    python-Twisted-doc-22.2.0-1.1 on GA media

    CVE-2022-21716CVE-2022-24801 openSUSE Updated 4 February 2026

References