Intel

AIKIDO-2026-918779

asyncssh is vulnerable to Path Traversal

CVE-2026-77473Published Oct 8, 2026
October 8, 2026

65

CVE Score

Medium

Path Traversal

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.

How do I fix this?

Upgrade the asyncssh library to the patch version.

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.

Package

Versions

0.0.1 - 2.24.0

Fixed in 2.24.1

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea