VDB

CVE-2022-21716

CVE-2022-21716 PUBLISHED CVSS 7.5 HIGH

Buffer Overflow in Twisted

Reported by github_m · Published March 3, 2022

twisted is fixed in 89c395ee794e85a9657b112c4351417850330ef9 and 22.2.0 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
twistedPyPI89c395ee794e85a9657b112c4351417850330ef9, 22.2.0
python3-twistedAmazon Linux22.4.0-124.amzn2023.0.2
python3-twisted+tlsAmazon Linux22.4.0-124.amzn2023.0.2
py3-twistedAlpine22.2.0-r0
twistedtwisted22.2.0

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
twistedtwisted< 22.2.0
amazon:2023python3-twisted0
PyPITwisted21.7.0
archpython-twisted*
amazon:2023python3-twisted+tls0
alpinepy3-twisted0
twistedtwisted0

Timeline

  • Mar 3, 2022 CVE Published
  • Mar 4, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 25, 2024 CVE Updated
  • Mar 9, 2026 Security Advisory (19 in total, the first dated here)
  • Jul 7, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (16 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-21716
vulnetix vdb fixes CVE-2022-21716

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-21716/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›