CVE-2022-21716
published high CVSS 3.1 · 7.5Buffer Overflow in Twisted
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| twisted | — | twisted< 22.2.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-056 | Fixed | Not stated | Amazon Linux assessment |
| Debian | stretch | twisted | Advisory build | 16.6.0-2+deb9u2 | DLA-2938-1 |
| Ubuntu | bionic | twisted | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Alpine Linux | edge | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-12 | python-Twistedaarch64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| Ubuntu | esm | twisted | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | focal | twisted | Advisory build | 18.9.0-11ubuntu0.20.04.2 | USN-5354-1 |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | twisted | Advisory build | 22.1.0-2ubuntu2.1 | USN-5354-2 |
| Ubuntu | xenial | twisted | Advisory build | 16.0.0-1ubuntu0.4+esm1 | USN-5354-2 |
| Alpine Linux | v3.16 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-twisted | Fixed | 22.2.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-12 | python-Twistedppc64le | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12 | python-Twisteds390x | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12 | python-Twistedx86_64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-Twistedaarch64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-Twistedppc64le | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-Twisteds390x | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-Twistedx86_64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-Twistedaarch64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-Twistedppc64le | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-Twisteds390x | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-Twistedx86_64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-Twistedaarch64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-Twistedppc64le | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-Twisteds390x | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-Twistedx86_64 | Advisory build | 15.2.1-9.17.1 | SUSE-SU-2022:2117-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-Twistedaarch64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-Twistedppc64le | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-Twisteds390x | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-Twistedx86_64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-Twistedaarch64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-Twistedppc64le | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-Twisteds390x | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-Twistedx86_64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-Twistedaarch64 | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-Twistedppc64le | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-Twisteds390x | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-Twistedx86_64 | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python-Twisted-docaarch64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python-Twisted-docppc64le | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python-Twisted-docs390x | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python-Twisted-docx86_64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-Twistedaarch64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-Twistedppc64le | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-Twisteds390x | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-Twistedx86_64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-Twistedaarch64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-Twistedppc64le | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-Twisteds390x | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-Twistedx86_64 | Advisory build | 19.10.0-150200.3.12.1 | SUSE-SU-2022:2070-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python-Twisted-docaarch64 | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python-Twisted-docppc64le | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python-Twisted-docs390x | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python-Twisted-docx86_64 | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-Twistedaarch64 | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-Twistedppc64le | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-Twisteds390x | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-Twistedx86_64 | Advisory build | 22.2.0-150400.5.4.1 | SUSE-SU-2022:2297-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-Twisted-docaarch64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-Twisted-docppc64le | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-Twisted-docs390x | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-Twisted-docx86_64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Twistedaarch64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Twistedppc64le | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Twisteds390x | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Twistedx86_64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Twistedaarch64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Twistedppc64le | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Twisteds390x | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Twistedx86_64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Twistedaarch64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Twistedppc64le | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Twisteds390x | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Twistedx86_64 | Advisory build | 22.2.0-1.1 | OPENSUSE-SU-2024:11978-1 |
| Ubuntu | bionic | python-twisted | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-bin | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-conch | Advisory build | 1:17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-core | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-mail | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-names | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-news | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-runner | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-web | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python-twisted-words | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python3-twisted | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | bionic | python3-twisted-bin | Advisory build | 17.9.0-2ubuntu0.3 | USN-5354-1 |
| Ubuntu | esm | python-twisted | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | esm | python-twisted-bin | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | esm | python-twisted-conch | Advisory build | 1:13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | esm | python-twisted-core | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | esm | python-twisted-lore | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | esm | python-twisted-mail | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | esm | python-twisted-names | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
| Ubuntu | esm | python-twisted-news | Advisory build | 13.2.0-1ubuntu1.2+esm2 | USN-5354-2 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| twisted | twisted | < 22.2.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-120 CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
9- https://github.com/twisted/twisted/commit/89c395ee794e85a9657b112c4351417850330ef9
- https://github.com/twisted/twisted/releases/tag/twisted-22.2.0
- https://github.com/twisted/twisted/security/advisories/GHSA-rv6r-3f5q-9rgx
- [debian-lts-announce] 20220308 [SECURITY] [DLA 2938-1] twisted security update https://lists.debian.org/debian-lts-announce/2022/03/msg00009.html
- FEDORA-2022-9a489fa494 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/
- FEDORA-2022-71b66d4747 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/
- GLSA-202301-02 https://security.gentoo.org/glsa/202301-02
- https://twistedmatrix.com/trac/ticket/10284
- https://www.oracle.com/security-alerts/cpuapr2022.html
Provider assertions
3GitHub_M · cna
Buffer Overflow in Twisted
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3d44ec83c33a560ad5c943f96226ac55064640597c28dddacd3caf9930001776
- Ingested
- 23 Sep 2026, 07:58:18 UTC
- Source record
- Official CVE record