Skip to main content

AsyncSSH CVE-2026-102643

| EUVDEUVD-2026-120504 HIGH
Path Traversal (CWE-22)
2026-11-09 GitHub_M
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as SFTP user
  2. Delivery
    Send path with two leading slashes
  3. Exploit
    normpath preserves double-slash, join treats as absolute
  4. Execution
    Read/write outside chroot as server account
  5. Impact
    Overwrite writable target for arbitrary file R/W or RCE

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the AsyncSSH server instantiate SFTPServer with a configured chroot (the vulnerable map_path() branch only runs when self._chroot is set); servers without chroot are not affected by this bypass. The attacker must be an authenticated SFTP user (PR:L) with an established session. The trigger is specific and described in the sources: a client-supplied path beginning with exactly two slash characters (e.g. //etc/passwd); the advisory confirms three-or-more leading slashes collapse to one and are NOT exploitable, so the condition is precisely two leading slashes. Impact is bounded by the OS permissions of the account running the server - reads and writes are limited to what that account can access, and escalation to code execution depends on the existence of writable, executable-on-load targets (e.g. a user's .bashrc) in that account's reachable filesystem. Affected versions are AsyncSSH <= 2.24.0.

Impact

This is a genuine high-priority issue, not a high-CVSS-but-low-real-risk case. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) is internally consistent with the mechanism: a network-reachable SFTP service, low attack complexity (a single path beginning with exactly two slashes), and only low privileges (any authenticated SFTP account) yield full confidentiality/integrity/availability impact over files accessible to the server's OS account. The vuln.today decision label is 'this_week' rather than act_now/emergency, which aligns with there being no CISA KEV listing and no EPSS score in the provided data - exploitation is demonstrated but not reported as active in the wild. The GHSA advisory includes concrete, working scp exploitation commands, so the practical barrier to exploitation is very low for anyone who already holds SFTP credentials. The main factor that constrains real-world risk is the deployment precondition: only servers that instantiate AsyncSSH's SFTPServer with a configured chroot are affected, and the attacker must already be an authenticated user. No KEV, no EPSS, and no SSVC decision vector were supplied, so widespread-versus-targeted exploitation cannot be judged from the inputs; however, given a public working PoC and trivial complexity, affected operators should treat this as a near-term patch item consistent with the 'this_week' label.

Exploit ScenarioDerived

An authenticated SFTP user connects to an AsyncSSH SFTPServer that was set up with a per-user chroot and issues a transfer for a path beginning with exactly two slashes, e.g. 'scp -P 8022 testuser@host://etc/passwd out.txt'. Because posixpath.normpath() preserves the double-leading-slash form and the subsequent join treats the remainder as absolute, the chroot is bypassed, letting the user read or write any file the server account can access. A detailed public PoC exists in the GHSA advisory (including overwriting a victim's ~/.bashrc), demonstrating escalation to code execution depending on writable targets; the CVSS AC:L/PR:L reflects that this requires only valid credentials and a trivially crafted path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

Chroot escape in AsyncSSH's SFTP server (versions <= 2.24.0) lets an authenticated SFTP user read and write files outside the configured chroot directory by submitting a path that begins with exactly two slash characters (for example //etc/passwd). Because POSIX path normalization preserves the double-leading-slash form, the single slash stripped before joining with the chroot leaves an absolute path that discards the chroot prefix entirely, so file operations execute with the operating-system permissions of the account running the server; the vendor advisory demonstrates reading /etc/passwd and overwriting a user's .bashrc, which can be chained into code execution where writable, auto-loaded targets exist. Only servers that instantiate SFTPServer with a chroot are affected, the attacker must already hold a valid authenticated session (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8), no CISA KEV entry or confirmed exploitation is recorded, and exploitation requires the precise two-slash condition since three or more leading slashes collapse to a single slash and remain inside the chroot. AsyncSSH 2.24.1 contains the fix and the issue is prioritised for remediation this week; public proof-of-concept reproduction steps are published in the vendor advisory.

RemediationAI

Upgrade AsyncSSH to version 2.24.1, the release that replaces the single-slash strip in SFTPServer.map_path() with normpath.lstrip(b'/') and thereby closes the double-leading-slash escape; the vendor states that 2.24.1 is the fix and the advisory tracks the vulnerable range as <= 2.24.0, so pin asyncssh>=2.24.1 and rebuild or redeploy any bundled copies. Confirmed artefacts are the GHSA advisory at https://github.com/ronf/asyncssh/security/advisories/GHSA-w29m-45fc-22v9 and the patch commit at https://github.com/ronf/asyncssh/commit/d4fc430d37b234cb35f1ba2cca834b2dbe1302cf if a backport into a vendored source tree is required. Until the upgrade is deployed, the practical containment lever described in the evidence is the privilege boundary itself: the escape yields only the filesystem rights of the account that launched SFTPServer, so running that service under a dedicated low-privilege account with no writable, auto-loaded targets (such as shell startup files or importable modules) in its reachable filesystem limits both the read exposure and the reported path from arbitrary write to code execution. Note that simply removing the chroot argument is not a remediation, since it eliminates containment rather than restoring it. No CISA KEV listing or confirmed in-the-wild exploitation is recorded, and the item is prioritised to be addressed this week rather than as an immediate emergency.

Affected VersionsENISA

asyncssh < 2.24.1

Affected Packages

euvd asyncssh fix: 2.24.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AsyncSSH implements the SSHv2 client and server protocols on top of Python's asyncio framework, and its SFTPServer class provides a chrooted file service in which map_path() translates client-supplied SFTP pathnames into paths on the host filesystem. The vulnerable build normalises the incoming path with posixpath.normpath(posixpath.join(b'/', path)) and then joins the result onto the configured chroot after removing exactly one leading slash with normpath[1:]. That combination is unsound because POSIX.1-2024 §4.16 permits an implementation-defined interpretation of a pathname beginning with exactly two successive slashes, and Python's posixpath.normpath honours this by preserving the // prefix; posixpath.join then treats the remaining component as absolute and discards the chroot prefix. The result is CWE-22 (path traversal) and, as the advisory additionally classifies it, CWE-50 (path equivalence), since the server and the OS disagree about which pathname the client actually referenced. The upstream fix in commit d4fc430d37b234cb35f1ba2cca834b2dbe1302cf replaces normpath[1:] with normpath.lstrip(b'/'), stripping every leading slash so the joined path cannot re-ascend to an absolute root. The vulnerability is reachable only through the self._chroot branch of map_path(); when no chroot is configured the method returns the client path unchanged and no bypass of this kind applies. Trigger conditions are fully documented in the advisory and reproduced in a Python 3.24.0 environment using scp against the example SFTPServer.

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 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable SFTP service (AV:N), trivial crafted double-slash path (AC:L), any authenticated SFTP account (PR:L), no user interaction (UI:N); arbitrary file read/write as the server account gives C/I/A High within its own permission scope (S:U).

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

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
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 09, 2026 - 23:18 EUVD
CVE Published
Nov 09, 2026 - 21:51 cve.org
HIGH 8.8

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.1, SFTPServer.map_path() uses posixpath.normpath() on a client-supplied path and removes only one leading slash before passing the result to posixpath.join() with the configured chroot. An authenticated SFTP user can supply a path beginning with exactly two slash characters, causing POSIX normalization to preserve the double-leading-slash form and the subsequent join to treat the remaining pathname as absolute. This bypasses the SFTP chroot and permits reads and writes with the operating-system permissions of the account running the server, which may enable code execution depending on writable targets. This issue is fixed in version 2.24.1.

Technical POC Analysis

CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), specifically CWE-50 path equivalence with //multiple/leading/slash.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-102643 is a high-severity chroot escape in AsyncSSH's SFTP server (versions <= 2.24.0) that allows any authenticated SFTP user to access files outside their designated directory, potentially leading to data exposure and system compromise. Organizations using AsyncSSH to provide SFTP access for partners, customers, or internal users are at risk of unauthorized file reads and writes, which could escalate to code execution if writable auto-loaded targets exist. Leadership should prioritize inventory and mitigation because this flaw undermines a key security boundary and could result in data breaches or operational disruption.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict SFTP access to trusted users; disable chroot-based SFTP if feasible; monitor for double-slash path patterns; enforce least privilege for the SFTP service account; implement file integrity monitoring on critical files; consider network segmentation to limit exposure.

Threat Intelligence Overview

EPSS Score
0.8%
Top 42% exploitable
Prevalence
Medium
popular Python asyncio SSH/SFTP library, but vulnerable only in chrooted SFTPServer deployments
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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