Read the docs

Path traversal in AsyncSSH SFTP copy lets servers write local files

Priority LOW 30CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

AsyncSSH before 2.24.1 is affected. Recursive remote-to-local SFTP copies in SFTPClient._copy() do not sanitize filenames returned by the remote server's directory listing when building local destination paths (CWE-22). A malicious or compromised SFTP server can return absolute filenames or parent-directory sequences, so a client that runs get(), mget() or copy() can have attacker-selected content written outside the requested local directory.

Written with Claude Haiku 5.5 from the sources below · 2026-11-09

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, recursive remote-to-local SFTP copies in SFTPClient._copy() in asyncssh/sftp.py, reached through get(), mget(), and copy(), trust filenames returned by a remote server's directory enumeration. A malicious or compromised SFTP server can return an absolute filename or a filename containing path separators and parent-directory traversal, causing destination path construction to escape the requested local directory and write attacker-selected content to locations writable by the client process. This issue is fixed in version 2.24.1.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00543 46th percentileScored 2026-11-16
Fix Fixed asyncssh (ronf): 2.24.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ronfasyncsshbefore 2.24.12.24.1Patch availableCNA
  • asyncssh Vendorronf Affected before 2.24.1 Fixed in 2.24.1 Patch available CNA

Remediation

Upgrade AsyncSSH to version 2.24.1, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-09

  • Fix · CNA asyncssh (ronf) Fixed in 2.24.1

Timeline

  1. 2026-11-09 Threatist record created from CVE-2026-77473
  2. 2026-11-10 CISA SSVC decision points changed
  3. 2026-11-10 Priority changed: MEDIUM → LOW

References

  • TI-2026-87392 Chroot escape in AsyncSSH SFTP server lets users read and write files CVSS 3.1HIGH 8.8
  • 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-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