CVE-2026-45309
CVE-2026-45309 · AsyncSSH `AuthorizedKeysFile %u` path traversal allows attacker-selected authorized keys to authenticate a traversal username
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.0, AsyncSSH expands the OpenSSH-compatible AuthorizedKeysFile %u token in asyncssh/config.py, asyncssh/connection.py, asyncssh/auth_keys.py, and asyncssh/misc.py with the raw SSH username during pre-authentication server config reload, allowing a server configured with AuthorizedKeysFile authorized_keys/%u to read an authorized-keys file outside the intended directory when the SSH username contains /, \, or .. path traversal segments and authenticate with an attacker-selected key file. This issue is fixed in version 2.23.0.
CVSS 8.2 · High · EPSS 0.6% · Fix available
- Published
- Updated
Affected products and versions
asyncssh
- Versions
- < 2.23.0: Affected
No fix published
python-asyncssh Debian:12
- Versions
- 2.10.1-2
- 2.10.1-2+deb12u1
- 2.10.1-2+deb12u2
- 2.15.0-1
- 2.16.0-1
- 2.17.0-1
- 2.17.0-2
- 2.18.0-1
- 2.19.0-1
- 2.20.0-1
- 2.21.0-1
- 2.21.1-1
- 2.22.0-1
- 2.22.0-2
- 2.23.0-1
- 2.24.0-1
- 2.24.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-asyncssh Debian:13
- Versions
- 2.20.0-1
- 2.21.0-1
- 2.21.1-1
- 2.22.0-1
- 2.22.0-2
- 2.23.0-1
- 2.24.0-1
- 2.24.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-asyncssh Debian:14
- Versions
- 2.20.0-1
- 2.21.0-1
- 2.21.1-1
- 2.22.0-1
- 2.22.0-2
- Affected ranges
- ECOSYSTEM: < 2.23.0-1
Update to 2.23.0-1
asyncssh PyPI
- Versions
- 2.22.0
- Affected ranges
- ECOSYSTEM: ≥ 2.22.0, < 2.23.0
Update to 2.23.0
python-asyncssh Ubuntu:16.04:LTS
- Versions
- 1.2.0-1
- 1.2.1-1
- 1.3.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-asyncssh Ubuntu:Pro:18.04:LTS
- Versions
- 1.8.1-2
- 1.11.0-2
- 1.11.1-1
- 1.11.1-1ubuntu0.1~esm1
- 1.11.1-1ubuntu0.1~esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-asyncssh Ubuntu:20.04:LTS
- Versions
- 1.12.2-1
- 1.12.2-1ubuntu0.1
- 1.12.2-1ubuntu0.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-asyncssh Ubuntu:Pro:22.04:LTS
- Versions
- 2.5.0-1
- 2.5.0-1ubuntu0.1~esm1
- 2.5.0-1ubuntu0.1
- 2.5.0-1ubuntu0.1+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-asyncssh Ubuntu:Pro:24.04:LTS
- Versions
- 2.10.1-2
- 2.10.1-2ubuntu0.1
- 2.10.1-2ubuntu0.1+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python-asyncssh Ubuntu:26.04:LTS
- Versions
- 2.20.0-1
- 2.21.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published