Advisory

PYSEC-2022-160

Also known as: CVE-2022-21716, GHSA-rv6r-3f5q-9rgx

Summary

The record has no summary.

Details

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

Not rated by the source.

Dates

Published
2022-03-03 21:15 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

twisted

PyPI · All systems

Affected

  • introduced 21.7.0, fixed 22.2.0 (ecosystem)

Fixed versions

22.2.0

Fix

  • Fixed version 22.2.0
    pip install --upgrade twisted==22.2.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences