Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M

CVE-2026-54591AsyncSSH: SCP Path Traversal to Arbitrary File Write

High 8.1

In plain English

A high-severity path traversal in asyncssh from ronf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.5%top 57.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.23.1, a malicious SSH server can write arbitrary files on the asyncssh SCP client's filesystem by sending filenames containing ../ traversal sequences because _parse_cd_args in scp.py returns server-provided names verbatim and _recv_files joins them to the destination path without enforcing the target directory boundary. This issue is fixed in version 2.23.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-asyncsshno fix listedDEBIAN-CVE-2026-54591
Debian:13python-asyncsshno fix listedDEBIAN-CVE-2026-54591
Debian:14python-asyncssh2.24.0-1DEBIAN-CVE-2026-54591
PyPIasyncssh2.23.1PYSEC-2026-3808
PyPIasyncssh2.23.1GHSA-2wxc-x7rj-hg8f
Ubuntu:25.10python-asyncsshno fix listedUBUNTU-CVE-2026-54591
Ubuntu:26.04:LTSpython-asyncsshno fix listedUBUNTU-CVE-2026-54591
Ubuntu:26.10python-asyncsshno fix listedUBUNTU-CVE-2026-54591

Affected products (as reported)

VendorProductVersions
ronf asyncssh < 2.23.1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

References