Skip to main content
← All vulnerabilities
CVE-2022-21716PYSEC-2022-160GHSA-RV6R-3F5Q-9RGX

Buffer Overflow in Twisted

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 22.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • twisted twisted

    fixed in 22.2.0

  • twistedPyPI

    From 21.7.0 · fixed in 22.2.0

References 9

GitHub · twisted/twisted

twistedmatrix.com

lists.debian.org

oracle.com

lists.fedoraproject.org

security.gentoo.org