CVE-2022-21716
Buffer Overflow in Twisted
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 4 months later
· 4 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 3.5% · top 11% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPItwistedGHSA-rv6r-3f5q-9rgx (opens in a new tab)
References (9)
- https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx (opens in a new tab)x_transferred
- https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9 (opens in a new tab)x_transferred
- https://github.com/twisted/twisted/releases/tag/twisted-22.2.0 (opens in a new tab)x_transferred
- https://twistedmatrix.com/trac/ticket/10284 (opens in a new tab)x_transferred
- [debian-lts-announce] 20220308 [SECURITY] [DLA 2938-1] twisted security update (opens in a new tab)mailing-listx_transferred
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_transferred
- FEDORA-2022-71b66d4747 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-9a489fa494 (opens in a new tab)vendor-advisoryx_transferred
- GLSA-202301-02 (opens in a new tab)vendor-advisoryx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rv6r-3f5q-9rgx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-21716)Record last updated .