Intel

AIKIDO-2026-918779

asyncssh is vulnerable to Path Traversal

Path TraversalCVE-2026-77473 Published 6 days ago

65

Medium Risk

This Affects:

PYTHONasyncssh
0.0.1 - 2.24.0
Fixed in 2.24.1
Are you affected? Scan for Free

TL;DR

SFTPClient._copy() in asyncssh/sftp.py joins each server supplied filename from an SFTP readdir response onto the local destination directory, checking only for exact . and .. names. A malicious or compromised SFTP server can return an absolute path or a filename containing ../ during a recursive get(), mget(), or copy(), so the client writes the file outside the requested destination directory. This SFTP recursive copy logic has no filename guard from the earlier SCP path traversal fix. The patch checks server supplied filenames before joining them onto the local destination path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use SFTPClient.get(), mget(), or copy() to recursively download from an untrusted or compromised SFTP server.

Background info

asyncssh is vulnerable to Path Traversal in versions 0.0.1 - 2.24.0.

How to fix this

Upgrade the asyncssh library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform