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.24.1, SFTPServer.map_path() uses posixpath.normpath() on a client-supplied path and removes only one leading slash before passing the result to posixpath.join() with the configured chroot. An authenticated SFTP user can supply a path beginning with exactly two slash characters, causing POSIX normalization to preserve the double-leading-slash form and the subsequent join to treat the remaining pathname as absolute. This bypasses the SFTP chroot and permits reads and writes with the operating-system permissions of the account running the server, which may enable code execution depending on writable targets. This issue is fixed in version 2.24.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ronf | asyncssh | < 2.24.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.
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 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 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | python-asyncssh | 2.21.0-bp160.3.1 | openSUSE-SU-2026:22281-1 |
Advisories 1
- openSUSE-SU-2026:22281-1 Security update for python-asyncssh SUSE / openSUSE Security Updates · Nov 14, 2026