Chroot escape in AsyncSSH SFTP server lets users read and write files
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
AsyncSSH, a Python package providing an asynchronous SSHv2 client and server, is affected before 2.24.1. The SFTP server's path mapping keeps a client-supplied path beginning with exactly two slashes in absolute form, so a path join treats the rest as absolute, which is an improper limitation of a pathname to a restricted directory (CWE-22). An authenticated SFTP user can bypass the chroot and read and write files with the permissions of the account running the server, which may enable code execution depending on writable targets.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade ronf AsyncSSH to version 2.24.1, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
- Fix · CNA asyncssh (ronf) Fixed in 2.24.1
Timeline
- 2026-11-09 Threatist record created from CVE-2026-102643
- 2026-11-14 CISA SSVC decision points changed
References
More ronf vulnerabilities
- TI-2026-39424 AsyncSSH AuthorizedKeysFile username substitution bypass through ~ and environment expansion CVSS 3.1MEDIUM 5.9
- TI-2026-39425 AsyncSSH: SCP Path Traversal to Arbitrary File Write CVSS 3.1HIGH 8.1
- TI-2026-87391 Path traversal in AsyncSSH SFTP copy lets servers write local files CVSS 3.1MEDIUM 6.5
- TI-2026-44984 AsyncSSH: asyncio event-loop freeze via SSH maximum packet size = 0 in SSH_MSG_CHANNEL_OPEN / OPEN_CONFIRMATION CVSS 3.1MEDIUM 6.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences