Skip to content
OpenAdvisories
High · 8.1 CVE-2026-54591 EUVD-2026-42399GHSA-2wxc-x7rj-hg8fPYSEC-2026-3808

AsyncSSH: SCP Path Traversal to Arbitrary File Write

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
ronf asyncssh < 2.23.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-asyncssh 2.24.0-1 —
Debian 13 python-asyncssh No fix yet —
Debian 12 python-asyncssh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-asyncssh No fix yet —
Ubuntu 26.04 LTS python-asyncssh No fix yet —
Ubuntu 25.10 python-asyncssh No fix yet —
Ubuntu 20.04 LTS python-asyncssh No fix yet —
Ubuntu 16.04 LTS python-asyncssh No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS python-asyncssh No fix yet —
Ubuntu Pro 22.04 LTS python-asyncssh No fix yet —
Ubuntu Pro 18.04 LTS python-asyncssh No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI asyncssh < 2.23.1 2.23.1 GHSA-2wxc-x7rj-hg8f

References