---
id: CVE-2026-77473
title: >-
  AsyncSSH: SFTP Recursive Copy Path Traversal via Unsanitized Server-Supplied
  Filenames
summary: >-
  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 as…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-22
vendor: ronf
product: asyncssh
affected:
  - asyncssh < 2.24.1
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-10T18:18:35.070099Z'
published: '2026-11-09'
updated: '2026-11-10'
sourceUpdated: '2026-11-10T19:07:07.943Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-77473'
references:
  - url: 'https://github.com/ronf/asyncssh/security/advisories/GHSA-q8m6-9rfx-39rf'
    label: 'https://github.com/ronf/asyncssh/security/advisories/GHSA-q8m6-9rfx-39rf'
  - url: >-
      https://github.com/ronf/asyncssh/commit/eaf7fd3b058ccb36b51ed932158d36cf304aa7c3
    label: >-
      https://github.com/ronf/asyncssh/commit/eaf7fd3b058ccb36b51ed932158d36cf304aa7c3
  - url: 'https://github.com/ronf/asyncssh/releases/tag/v2.24.1'
    label: 'https://github.com/ronf/asyncssh/releases/tag/v2.24.1'
tags:
  - cve.org
epss: 0.00652
epssPercentile: 0.52561
ingestedAt: '2026-11-09T22:29:47.306Z'
---

## Overview

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.

## Affected

- `asyncssh < 2.24.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
