# Twisted SSH client and server deny of service during SSH handshake.

Advisory record · `GHSA-rv6r-3f5q-9rgx`

- **Identifiers:** `GHSA-rv6r-3f5q-9rgx` · `CVE-2022-21716` · `PYSEC-2022-160`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-120](https://cwe.mitre.org/data/definitions/120.html) · [CWE-770](https://cwe.mitre.org/data/definitions/770.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md) · [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 3 Mar 2022
- **Updated:** 25 Nov 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 3 Mar 2022, 19:02 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `twisted` (PyPI): affected `>=21.7.0, <22.2.0`; fixed in `22.2.0`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.035, the 89th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 3 Mar 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-rv6r-3f5q-9rgx](https://github.com/advisories/GHSA-rv6r-3f5q-9rgx)
- [OSV: GHSA-rv6r-3f5q-9rgx](https://osv.dev/vulnerability/GHSA-rv6r-3f5q-9rgx)
- <https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21716>
- <https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9>
- <https://github.com/twisted/twisted/commit/98387b39e9f0b21462f6abc7a1325dc370fcdeb1>
- <https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-160.yaml>
- <https://github.com/twisted/twisted>
- <https://github.com/twisted/twisted/releases/tag/twisted-22.2.0>
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-rv6r-3f5q-9rgx>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-rv6r-3f5q-9rgx/>. Everything for agents: <https://agentprime.io/llms.txt>.
