{"id":"CVE-2022-21716","published":"2022-03-03T00:00:00Z","modified":"2025-04-22T18:21:08Z","title":"Buffer Overflow in Twisted","vendor":"twisted","product":"twisted","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0351,"percentile":0.89475,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx","tags":[]},{"url":"https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9","tags":[]},{"url":"https://github.com/twisted/twisted/releases/tag/twisted-22.2.0","tags":[]},{"url":"https://twistedmatrix.com/trac/ticket/10284","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html","tags":["mailing-list"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202301-02","tags":["vendor-advisory"]}],"priority":{"score":23.1,"factors":[{"name":"EPSS percentile","points":17.89},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"twisted","affectedVersions":[{"vendor":"twisted","product":"twisted","versions":["< 22.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-22T15:42:00.960323Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"twisted","vulnerableRanges":[">=21.7.0, <22.2.0"],"patched":["22.2.0"],"from":["GHSA-rv6r-3f5q-9rgx","PYSEC-2022-160"],"provenance":"source"}],"summary":{"text":"The flaw is in the SSH client and server implementation of Twisted, an event-based Python framework for internet applications, where the peer's SSH version identifier is accepted without a length limit, so it can grow until it consumes all available memory. An attacker with only network access to the affected Twisted SSH service can trigger it by sending an unbounded stream of data during the version exchange, requiring no authentication, user interaction, or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:31Z"},"euvd":{"id":"EUVD-2022-0344","exploited":false,"provenance":"source"}}