Skip to main content

AsyncSSH EUVDEUVD-2026-81093

| CVE-2026-62949 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-09-16 GitHub_M GHSA-rw4j-r22c-9gc3
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to AsyncSSH server or lure client to malicious server
  2. Delivery
    Send CHANNEL_OPEN/CHANNEL_OPEN_CONFIRMATION with send_pktsize=0
  3. Exploit
    Channel data hits _flush_send_buf zero-slice loop
  4. Execution
    Event loop spins with no await point
  5. Impact
    Process 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

asyncssh < 2.24.0

Affected Packages

pypi asyncssh fix: 2.24.0

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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Sep 16, 2026 - 21:18 EUVD

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 9 pypi packages depend on asyncssh (6 direct, 3 indirect)

Ecosystem-wide dependent count for version 2.24.0.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Medium
popular Python async SSH library, widely embedded but application-scoped
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy