Directory Traversal Affecting python-asyncssh package, versions <2.20.0-1+e4


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.65% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-PYTHONASYNCSSH-22391712
  • published10 Nov 2026
  • disclosed9 Nov 2026

Introduced: 9 Nov 2026

NewCVE-2026-77473  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Echo:latest python-asyncssh to version 2.20.0-1+e4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-asyncssh package and not the python-asyncssh package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.