{"id":"CVE-2022-21716","aliases":["GHSA-rv6r-3f5q-9rgx","PYSEC-2022-160"],"url":"https://o3.security/vulnerability/CVE-2022-21716","summary":"Buffer Overflow in Twisted","details":"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.","published":"2022-03-03T00:00:00Z","modified":"2026-08-12T03:51:20.346159755Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"twisted","fixedVersion":"22.2.0"}],"fix":{"url":"https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9","label":"twisted/twisted@89c395e"},"references":[{"type":"WEB","url":"https://github.com/twisted/twisted/releases/tag/twisted-22.2.0"},{"type":"WEB","url":"https://twistedmatrix.com/trac/ticket/10284"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21716.json"},{"type":"ADVISORY","url":"https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21716"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202301-02"},{"type":"FIX","url":"https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:20.346159755Z"}}