CVE-2022-21716

NameCVE-2022-21716
DescriptionTwisted 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2938-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
twisted (PTS)buster18.9.0-3+deb10u1fixed
bullseye20.3.0-7+deb11u1fixed
bookworm, sid22.4.0-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
twistedsourcestretch16.6.0-2+deb9u2DLA-2938-1
twistedsourcebuster18.9.0-3+deb10u1
twistedsourcebullseye20.3.0-7+deb11u1
twistedsource(unstable)22.2.0-1

Notes

https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx
https://github.com/twisted/twisted/commit/98387b39e9f0b21462f6abc7a1325dc370fcdeb1
https://twistedmatrix.com/trac/ticket/10284

Search for package or bug name: Reporting problems