{"id":"CVE-2022-21716","state":"PUBLISHED","title":"Buffer Overflow in Twisted","description":"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.","publishedAt":"2022-03-03T00:00:00.000Z","updatedAt":"2025-04-22T18:21:08.759Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["twisted twisted"],"affected":[{"vendor":"twisted","product":"twisted","versions":[{"version":"< 22.2.0","status":"affected"}]}],"references":["https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx","https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9","https://github.com/twisted/twisted/releases/tag/twisted-22.2.0","https://twistedmatrix.com/trac/ticket/10284","https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html","https://www.oracle.com/security-alerts/cpuapr2022.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/","https://security.gentoo.org/glsa/202301-02"],"weaknesses":["CWE-120"],"ingestedAt":"2026-10-29T19:49:35.025Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/21xxx/CVE-2022-21716.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-21716","state":"PUBLISHED","datePublished":"2022-03-03T00:00:00.000Z","dateUpdated":"2025-04-22T18:21:08.759Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-11-16T00:00:00.000Z"},"containers":{"cna":{"title":"Buffer Overflow in Twisted","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"twisted","product":"twisted","versions":[{"version":"< 22.2.0","status":"affected"}]}],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx"},{"url":"https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9"},{"url":"https://github.com/twisted/twisted/releases/tag/twisted-22.2.0"},{"url":"https://twistedmatrix.com/trac/ticket/10284"},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html","name":"[debian-lts-announce] 20220308 [SECURITY] [DLA 2938-1] twisted security update","tags":["mailing-list"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/","name":"FEDORA-2022-71b66d4747","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/","name":"FEDORA-2022-9a489fa494","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202301-02","name":"GLSA-202301-02","tags":["vendor-advisory"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-120","type":"CWE","lang":"en","description":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-01-11T00:00:00.000Z"},"source":{"advisory":"GHSA-rv6r-3f5q-9rgx","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx","tags":["x_transferred"]},{"url":"https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9","tags":["x_transferred"]},{"url":"https://github.com/twisted/twisted/releases/tag/twisted-22.2.0","tags":["x_transferred"]},{"url":"https://twistedmatrix.com/trac/ticket/10284","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html","name":"[debian-lts-announce] 20220308 [SECURITY] [DLA 2938-1] twisted security update","tags":["mailing-list","x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/","name":"FEDORA-2022-71b66d4747","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/","name":"FEDORA-2022-9a489fa494","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202301-02","name":"GLSA-202301-02","tags":["vendor-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T02:53:34.846Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-22T15:42:00.960323Z","id":"CVE-2022-21716","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-22T18:21:08.759Z"}}]}}}