Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-62949 EUVD-2026-81093GHSA-rw4j-r22c-9gc3PYSEC-2026-4026

AsyncSSH: asyncio event-loop freeze via SSH maximum packet size = 0 in SSH_MSG_CHANNEL_OPEN / OPEN_CONFIRMATION

Published Sep 16, 2026 · Updated Sep 17, 2026 · Assigned by GitHub_M

Description

AsyncSSH is a Python package which provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework. Prior to 2.24.0, _process_channel_open and _process_channel_open_confirmation in asyncssh/connection.py accept a peer-supplied send_pktsize value of zero. When channel data reaches SSHChannel._flush_send_buf in asyncssh/channel.py, the zero value causes each loop iteration to slice and remove zero bytes without reducing the send window, leaving the synchronous loop permanently true with no await point. A malicious SSH server can trigger the client path through SSH_MSG_CHANNEL_OPEN_CONFIRMATION before the first channel write, while an authenticated client can trigger the server path through SSH_MSG_CHANNEL_OPEN and freeze every current and future connection handled by the process. This vulnerability is fixed in 2.24.0.

Affected products

VendorProductAffectedFixed
ronf asyncssh < 2.24.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-asyncssh No fix yet —
Debian 13 python-asyncssh No fix yet —
Debian 12 python-asyncssh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-asyncssh No fix yet —
Ubuntu 26.04 LTS python-asyncssh No fix yet —
Ubuntu 20.04 LTS python-asyncssh No fix yet —
Ubuntu 16.04 LTS python-asyncssh No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS python-asyncssh No fix yet —
Ubuntu Pro 22.04 LTS python-asyncssh No fix yet —
Ubuntu Pro 18.04 LTS python-asyncssh No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-asyncssh 2.24.0-1.1 openSUSE-SU-2026:11851-1
openSUSE Leap 16.0 python-asyncssh 2.21.0-bp160.2.1 openSUSE-SU-2026:21953-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI asyncssh < 2.24.0 2.24.0 GHSA-rw4j-r22c-9gc3

Advisories 2

References