cve.bz

CVE-2022-21716 Classic Buffer Overflow

7.5 highExploit referenceEPSS 3.5%Fix available

High (7.5). EPSS 3.5% estimated probability of exploitation activity in the next 30 days. Fixed in twisted 22.2.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.5% (unchanged from 3.5% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21716 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21716?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21716?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21716 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
twisted:twistedfrom 21.7.0 before 22.2.0
debian:debian_linux9.0
oracle:http_server12.2.1.3.0
oracle:http_server12.2.1.4.0
oracle:zfs_storage_appliance_kit8.8
fedoraproject:fedora35
fedoraproject:fedora36

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rv6r-3f5q-9rgxPyPItwisted>=21.7.0 <22.2.022.2.0
PYSEC-2022-160PyPItwisted>=21.7.0 <22.2.022.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9twisted16.6.0-2+deb9u2DLA-2938-1
Debian12, 13, 14twisted22.2.0-1DEBIAN-CVE-2022-21716
Ubuntu18.04:LTStwisted17.9.0-2ubuntu0.3UBUNTU-CVE-2022-21716 USN-5354-1
Ubuntu20.04:LTStwisted18.9.0-11ubuntu0.20.04.2UBUNTU-CVE-2022-21716 USN-5354-1
Ubuntu22.04:LTStwisted22.1.0-2ubuntu2.1UBUNTU-CVE-2022-21716 USN-5354-2
UbuntuPro:14.04:LTStwisted13.2.0-1ubuntu1.2+esm2UBUNTU-CVE-2022-21716 USN-5354-2
UbuntuPro:16.04:LTStwisted16.0.0-1ubuntu0.4+esm1UBUNTU-CVE-2022-21716 USN-5354-2
Red Hatopenstack:16.1::el8python-twisted, python3-twisted, python3-twisted-debuginfo and 1 more0:16.4.1-19.el8ostRHSA-2022:0982
Red Hatopenstack:16.2::el8python-twisted, python3-twisted, python3-twisted-debuginfo and 1 more0:16.4.1-19.el8ostRHSA-2022:0992
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morepython-Twisted19.10.0-150200.3.12.1SUSE-SU-2022:2070-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Module for Web and Scripting 12, OpenStack Cloud 8 and 3 morepython-Twisted15.2.1-9.17.1SUSE-SU-2022:2117-1
SUSELinux Enterprise Module for Server Applications 15 SP4python-Twisted22.2.0-150400.5.4.1SUSE-SU-2022:2297-1
openSUSELeap 15.3, Leap 15.4python-Twisted19.10.0-150200.3.12.1SUSE-SU-2022:2070-1
openSUSELeap 15.4python-Twisted22.2.0-150400.5.4.1SUSE-SU-2022:2297-1
openSUSETumbleweedpython-Twisted22.2.0-1.1openSUSE-SU-2024:11978-1
Alpinev3.16, v3.17, v3.18 and 6 morepy3-twisted22.2.0-r0ALPINE-CVE-2022-21716

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.1python-twisted-0:16.4.1-19.el8ostFixed 2022-03-24RHSA-2022:0982
Red Hat OpenStack Platform 16.2python-twisted-0:16.4.1-19.el8ostFixed 2022-03-23RHSA-2022:0992
Red Hat Ansible Automation Platform 2automation-controllerAffected
Red Hat Enterprise Linux 6python-twistedOut of support scope
Red Hat Enterprise Linux 6python-twisted-conchOut of support scope
Red Hat OpenStack Platform 13 (Queens)python-twistedAffected
Red Hat Satellite 6python-twistedAffected
Service Telemetry Framework 1.3 for RHEL 8python-twistedAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21716.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13), CWE-770 (20).

References

Check your stackJSON