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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-asyncssh | 2.24.0-1 | — |
| Debian 13 | python-asyncssh | No fix yet | — |
| Debian 12 | python-asyncssh | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | asyncssh | < 2.23.1 | 2.23.1 | GHSA-2wxc-x7rj-hg8f |