CVE-2022-21716
CVE-2022-21716 · Buffer Overflow in Twisted
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.5 · High · EPSS 3.5% · Fix available
- Published
- Updated
Affected products and versions
twisted
- Versions
- < 22.2.0: Affected
No fix published
twisted Debian:12
- Affected ranges
- ECOSYSTEM: < 22.2.0-1
Update to 22.2.0-1
twisted Debian:13
- Affected ranges
- ECOSYSTEM: < 22.2.0-1
Update to 22.2.0-1
twisted Debian:14
- Affected ranges
- ECOSYSTEM: < 22.2.0-1
Update to 22.2.0-1
twisted PyPI
- Versions
- 21.7.0
- 22.1.0
- 22.1.0rc1
- 22.2.0rc1
- Affected ranges
- ECOSYSTEM: ≥ 21.7.0, < 22.2.0
Update to 22.2.0
twisted PyPI
- Versions
- 21.7.0
- 22.1.0
- 22.1.0rc1
- 22.2.0rc1
- Affected ranges
- GIT: < 89c395ee794e85a9657b112c4351417850330ef9
- ECOSYSTEM: ≥ 21.7.0, < 22.2.0
Update to 22.2.0
twisted Ubuntu:Pro:14.04:LTS
- Versions
- 13.0.0-1ubuntu1
- 13.2.0-1ubuntu1
- 13.2.0-1ubuntu1.2
- 13.2.0-1ubuntu1.2+esm1
- Affected ranges
- ECOSYSTEM: < 13.2.0-1ubuntu1.2+esm2
Update to 13.2.0-1ubuntu1.2+esm2
twisted Ubuntu:Pro:16.04:LTS
- Versions
- 15.2.1-1ubuntu2
- 15.5.0-1
- 15.5.0-2
- 15.5.0-2ubuntu1
- 15.5.0-4
- 16.0.0~pre1-1
- 16.0.0~pre1-1ubuntu1
- 16.0.0~pre1-2ubuntu1
- 16.0.0~pre1-3
- 16.0.0-1
- 16.0.0-1ubuntu0.2
- 16.0.0-1ubuntu0.4
- Affected ranges
- ECOSYSTEM: < 16.0.0-1ubuntu0.4+esm1
Update to 16.0.0-1ubuntu0.4+esm1
twisted Ubuntu:18.04:LTS
- Versions
- 16.6.0-2ubuntu3
- 17.9.0-1
- 17.9.0-2
- 17.9.0-2ubuntu0.1
- Affected ranges
- ECOSYSTEM: < 17.9.0-2ubuntu0.3
Update to 17.9.0-2ubuntu0.3
twisted Ubuntu:20.04:LTS
- Versions
- 18.9.0-3ubuntu1
- 18.9.0-5
- 18.9.0-6
- 18.9.0-6build1
- 18.9.0-6ubuntu1
- 18.9.0-8
- 18.9.0-11
- 18.9.0-11ubuntu0.20.04.1
- Affected ranges
- ECOSYSTEM: < 18.9.0-11ubuntu0.20.04.2
Update to 18.9.0-11ubuntu0.20.04.2
twisted Ubuntu:22.04:LTS
- Versions
- 20.3.0-7ubuntu1
- 20.3.0-7ubuntu3
- 22.1.0-2ubuntu2
- Affected ranges
- ECOSYSTEM: < 22.1.0-2ubuntu2.1
Update to 22.1.0-2ubuntu2.1
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2022-21716