Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to AsyncSSH server or lure client to malicious server
-
DeliverySend CHANNEL_OPEN/CHANNEL_OPEN_CONFIRMATION with send_pktsize=0
-
ExploitChannel data hits _flush_send_buf zero-slice loop
-
ExecutionEvent loop spins with no await point
-
ImpactProcess freezes all current and future connections
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Triggered when a peer supplies a maximum packet size of zero in an SSH channel-open exchange against AsyncSSH prior to 2.24.0. Two concrete paths: (1) server-side - an authenticated client sends SSH_MSG_CHANNEL_OPEN with send_pktsize=0 (PR:L, requires a valid account or accepted connection to the AsyncSSH server); (2) client-side - a malicious/compromised SSH server sends SSH_MSG_CHANNEL_OPEN_CONFIRMATION with send_pktsize=0 before the first channel write, requiring the AsyncSSH client to initiate a connection to an attacker-controlled server (no attacker authentication, but victim-initiated connection acts as the limiting factor). Data must then be queued to the channel to reach the vulnerable _flush_send_buf loop. The impact is amplified because a single frozen event loop halts every connection handled by that process. No non-default configuration is required; any version below 2.24.0 is affected. |
| Impact | This is a genuine but moderate-severity availability-only issue. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, base 6.5) is consistent with the description: a CWE-835 infinite loop (send_pktsize=0 causing SSHChannel._flush_send_buf to slice zero bytes forever with no await point) that freezes the asyncio event loop and therefore every current and future connection handled by the process. There is no confidentiality or integrity impact - pure DoS. Signal comparison: no CISA KEV listing, no EPSS score, and no standalone public exploit is provided (the fix commit ships regression tests demonstrating the trigger, but that is a proof-of-fix, not weaponized exploit code). The vector's PR:L reflects the server-side path (an authenticated client sending SSH_MSG_CHANNEL_OPEN); note the description also describes a client-side path where a malicious SSH server triggers the freeze via SSH_MSG_CHANNEL_OPEN_CONFIRMATION before the first channel write - that path realistically requires no attacker authentication but does require the victim to connect out to a hostile server (effectively PR:N/UI:R), which the single published vector does not separately capture. Net: a real, easily-triggered denial-of-service worth patching for exposed AsyncSSH servers or clients that connect to untrusted servers, but not an urgent RCE-class emergency. |
| Exploit ScenarioDerived | An attacker who can authenticate to an AsyncSSH-based server (or who operates a malicious SSH server that an AsyncSSH client connects to) opens a channel and supplies a maximum packet size of zero. When data is queued to that channel, SSHChannel._flush_send_buf enters a synchronous loop that never advances the send window and never yields, hanging the single event loop and freezing all connections the process handles. No public standalone exploit is identified, though the vendor's fix includes regression tests that reproduce the condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
A peer-supplied maximum packet size of zero is accepted during SSH channel-open negotiation in AsyncSSH versions prior to 2.24.0, and the resulting zero-byte send-window processing drives SSHChannel._flush_send_buf into a synchronous infinite loop with no await point, permanently freezing the asyncio event loop. Because the loop is synchronous, a single trigger halts every current and future connection handled by that process, producing a complete denial of service rather than a per-connection failure. The server path is reachable by an authenticated client sending SSH_MSG_CHANNEL_OPEN with send_pktsize=0, while the client path is reachable by a malicious or compromised SSH server sending SSH_MSG_CHANNEL_OPEN_CONFIRMATION with send_pktsize=0 before the first channel write, so exploitation requires the AsyncSSH client to initiate a connection to that server. No public exploit identified at time of analysis, the issue is availability-only (no confidentiality or integrity impact), and vendor-released patch version 2.24.0 addresses it.
RemediationAI
Apply the vendor-released patch: upgrade AsyncSSH to 2.24.0 or later (release at https://github.com/ronf/asyncssh/releases/tag/v2.24.0, detailed in advisory GHSA-rw4j-r22c-9gc3; the enabling change is the re-enabled send_pktsize==0 validation from commits 756cbae5350789ce9735f15f704bae9b5a3608b8 and 9c354270c009285525e126721e8ed5fbed1f8a67). Verification of the fix is straightforward - after upgrading, a peer advertising max_pktsize=0 should produce a ChannelOpenError/ProtocolError rather than a hang, matching the upstream tests in tests/test_channel.py and tests/test_connection.py. No configuration flag exists to disable channel opens or to avoid the zero-packet-size path in vulnerable releases, so there is no clean in-place workaround; the practical string is to treat the library as untrusted-boundary code and place it behind process-level supervision: run each AsyncSSH server instance in its own process or container with an external watchdog (systemd Restart=, Kubernetes liveness probe, or a supervisor) that kills and restarts the process on missed heartbeats, accepting that this converts a permanent hang into a brief outage and drops all sessions handled by that process. For the client path, avoid connecting AsyncSSH clients to SSH servers that are not fully trusted or that you do not operate, since a malicious banner-side peer can trigger the freeze before the first channel write; where untrusted servers must be reached, isolate the client in a short-lived subprocess with a hard timeout rather than in a long-lived shared worker. On the server side, restricting which accounts are permitted to establish SSH sessions reduces the set of actors who can reach the authenticated trigger, but it does not eliminate the risk from legitimate or compromised users and offers no protection against the server-side freeze once a channel is opened. Note that in-process asyncio timeouts cannot rescue an already-frozen event loop, so the supervision and process-isolation measures must be external to the affected process.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-835 (Loop with Unreachable Exit Condition / infinite loop) in the SSHv2 channel-flow-control logic of AsyncSSH, a Python asyncio implementation of the SSH client and server protocols distributed on PyPI (CPE cpe:2.3:a:ronf:asyncssh:*:*:*:*:*:*:*:*, all versions before 2.24.0). The commit diff shows that the guard clauses validating the peer's send maximum packet size in _process_channel_open and _process_channel_open_confirmation in asyncssh/connection.py had been commented out; the fix re-enables them so a send_pktsize of zero raises ProtocolError('Invalid maximum packet size') instead of being accepted as legitimate state. When a zero packet size becomes the channel's send window, data queued to the channel reaches SSHChannel._flush_send_buf in asyncssh/channel.py, where each iteration slices and removes zero bytes from the send buffer without ever decreasing the send window - the loop condition therefore stays true forever and, critically, the loop contains no await point. In an asyncio program this blocks the event loop thread itself rather than merely stalling one coroutine, so the entire process stops servicing I/O, timers, and keepalives. The trigger surface is the SSH transport handshake/negotiation messages themselves: SSH_MSG_CHANNEL_OPEN on the server side (authenticated peer, consistent with PR:L in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) and SSH_MSG_CHANNEL_OPEN_CONFIRMATION on the client side prior to the first channel write, requiring no non-default configuration on any affected release. The upstream tests added alongside the fix (tests/test_channel.py, tests/test_connection.py) exercise exactly these two paths by asserting ChannelOpenError when a peer advertises max_pktsize=0.
Know when Asyncssh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Network-reachable, low complexity, availability-only whole-process freeze; PR:L reflects the authenticated-client server path (the malicious-server client path is PR:N/UI:R), scope unchanged, no C/I impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 9 pypi packages depend on asyncssh (6 direct, 3 indirect)
Ecosystem-wide dependent count for version 2.24.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The SSH server implementation of AsyncSSH before 1.12.1 does not properly check whether authentication is completed befo
Chroot escape in AsyncSSH's SFTP server (versions <= 2.24.0) lets an authenticated SFTP user read and write files outsid
An issue in AsyncSSH before 2.14.1 allows attackers to control the remote end of an SSH client session via packet inject
Path traversal in AsyncSSH's recursive remote-to-local SFTP copy logic (SFTPClient._copy(), reached through get(), mget(
An issue in AsyncSSH before 2.14.1 allows attackers to control the extension info message (RFC 8308) via a man-in-the-mi
EUVD-2026-81093
GHSA-rw4j-r22c-9gc3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB