Skip to content

CVE-2026-54590 AsyncSSH AuthorizedKeysFile username substitution bypass through ~ and environment expansion

MediumCVSS 5.9 EPSS 0.34%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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. Version 2.23.0 contains an incomplete fix for CVE-2026-45309 in SSHServerConfig._set_tokens that blocks /, , and .. before %u substitution in AuthorizedKeysFile but does not block a leading ~ or ${ENV}, allowing later expansion in _expand_val and Path(filename).expanduser() to escape the intended authorized-keys directory. This issue is fixed in version 2.23.1.

Affected products

ProductAffected versionsFixed in
ronf asyncssh = < 2.23.1 No fix listed
pypi asyncssh(PyPI) < 2.23.1 2.23.1
pypi asyncssh(PyPI) = 0.8.1 No fix listed
pypi asyncssh(PyPI) = 0.8.2 No fix listed
pypi asyncssh(PyPI) = 0.8.3 No fix listed
pypi asyncssh(PyPI) = 0.8.4 No fix listed
pypi asyncssh(PyPI) = 0.9.0 No fix listed
pypi asyncssh(PyPI) = 0.9.1 No fix listed
pypi asyncssh(PyPI) = 0.9.2 No fix listed
pypi asyncssh(PyPI) = 1.0.0 No fix listed
pypi asyncssh(PyPI) = 1.0.1 No fix listed
pypi asyncssh(PyPI) = 1.1.0 No fix listed
pypi asyncssh(PyPI) = 1.1.1 No fix listed
pypi asyncssh(PyPI) = 1.10.0 No fix listed
pypi asyncssh(PyPI) = 1.10.1 No fix listed
pypi asyncssh(PyPI) = 1.11.0 No fix listed
pypi asyncssh(PyPI) = 1.11.1 No fix listed
pypi asyncssh(PyPI) = 1.12.0 No fix listed
pypi asyncssh(PyPI) = 1.12.1 No fix listed
pypi asyncssh(PyPI) = 1.12.2 No fix listed
pypi asyncssh(PyPI) = 1.13.0 No fix listed
pypi asyncssh(PyPI) = 1.13.1 No fix listed
pypi asyncssh(PyPI) = 1.13.2 No fix listed
pypi asyncssh(PyPI) = 1.13.3 No fix listed
pypi asyncssh(PyPI) = 1.14.0 No fix listed
Show 79 more
ProductAffected versionsFixed in
pypi asyncssh(PyPI) = 1.15.0 No fix listed
pypi asyncssh(PyPI) = 1.15.1 No fix listed
pypi asyncssh(PyPI) = 1.16.0 No fix listed
pypi asyncssh(PyPI) = 1.16.1 No fix listed
pypi asyncssh(PyPI) = 1.17.0 No fix listed
pypi asyncssh(PyPI) = 1.17.1 No fix listed
pypi asyncssh(PyPI) = 1.18.0 No fix listed
pypi asyncssh(PyPI) = 1.2.0 No fix listed
pypi asyncssh(PyPI) = 1.2.1 No fix listed
pypi asyncssh(PyPI) = 1.3.0 No fix listed
pypi asyncssh(PyPI) = 1.3.1 No fix listed
pypi asyncssh(PyPI) = 1.3.2 No fix listed
pypi asyncssh(PyPI) = 1.4.0 No fix listed
pypi asyncssh(PyPI) = 1.4.1 No fix listed
pypi asyncssh(PyPI) = 1.5.0 No fix listed
pypi asyncssh(PyPI) = 1.5.1 No fix listed
pypi asyncssh(PyPI) = 1.5.2 No fix listed
pypi asyncssh(PyPI) = 1.5.3 No fix listed
pypi asyncssh(PyPI) = 1.5.4 No fix listed
pypi asyncssh(PyPI) = 1.5.5 No fix listed
pypi asyncssh(PyPI) = 1.5.6 No fix listed
pypi asyncssh(PyPI) = 1.6.0 No fix listed
pypi asyncssh(PyPI) = 1.6.1 No fix listed
pypi asyncssh(PyPI) = 1.6.2 No fix listed
pypi asyncssh(PyPI) = 1.7.1 No fix listed
pypi asyncssh(PyPI) = 1.7.2 No fix listed
pypi asyncssh(PyPI) = 1.7.3 No fix listed
pypi asyncssh(PyPI) = 1.8.0 No fix listed
pypi asyncssh(PyPI) = 1.8.1 No fix listed
pypi asyncssh(PyPI) = 1.9.0 No fix listed
pypi asyncssh(PyPI) = 2.0.0 No fix listed
pypi asyncssh(PyPI) = 2.0.1 No fix listed
pypi asyncssh(PyPI) = 2.1.0 No fix listed
pypi asyncssh(PyPI) = 2.10.0 No fix listed
pypi asyncssh(PyPI) = 2.10.1 No fix listed
pypi asyncssh(PyPI) = 2.11.0 No fix listed
pypi asyncssh(PyPI) = 2.12.0 No fix listed
pypi asyncssh(PyPI) = 2.13.0 No fix listed
pypi asyncssh(PyPI) = 2.13.1 No fix listed
pypi asyncssh(PyPI) = 2.13.2 No fix listed
pypi asyncssh(PyPI) = 2.14.0 No fix listed
pypi asyncssh(PyPI) = 2.14.1 No fix listed
pypi asyncssh(PyPI) = 2.14.2 No fix listed
pypi asyncssh(PyPI) = 2.15.0 No fix listed
pypi asyncssh(PyPI) = 2.16.0 No fix listed
pypi asyncssh(PyPI) = 2.17.0 No fix listed
pypi asyncssh(PyPI) = 2.18.0 No fix listed
pypi asyncssh(PyPI) = 2.19.0 No fix listed
pypi asyncssh(PyPI) = 2.2.0 No fix listed
pypi asyncssh(PyPI) = 2.2.1 No fix listed
pypi asyncssh(PyPI) = 2.20.0 No fix listed
pypi asyncssh(PyPI) = 2.21.0 No fix listed
pypi asyncssh(PyPI) = 2.21.1 No fix listed
pypi asyncssh(PyPI) = 2.22.0 No fix listed
pypi asyncssh(PyPI) = 2.23.0 No fix listed
pypi asyncssh(PyPI) = 2.3.0 No fix listed
pypi asyncssh(PyPI) = 2.4.0 No fix listed
pypi asyncssh(PyPI) = 2.4.1 No fix listed
pypi asyncssh(PyPI) = 2.4.2 No fix listed
pypi asyncssh(PyPI) = 2.5.0 No fix listed
pypi asyncssh(PyPI) = 2.6.0 No fix listed
pypi asyncssh(PyPI) = 2.7.0 No fix listed
pypi asyncssh(PyPI) = 2.7.1 No fix listed
pypi asyncssh(PyPI) = 2.7.2 No fix listed
pypi asyncssh(PyPI) = 2.8.0 No fix listed
pypi asyncssh(PyPI) = 2.8.1 No fix listed
pypi asyncssh(PyPI) = 2.9.0 No fix listed
pypi asyncssh(PyPI) <= 2.23.0 No fix listed
debian/python-asyncssh(Debian:14) < 2.24.0-1 2.24.0-1
debian/python-asyncssh(Debian:14) = 2.20.0-1 No fix listed
debian/python-asyncssh(Debian:14) = 2.21.0-1 No fix listed
debian/python-asyncssh(Debian:14) = 2.21.1-1 No fix listed
debian/python-asyncssh(Debian:14) = 2.22.0-1 No fix listed
debian/python-asyncssh(Debian:14) = 2.22.0-2 No fix listed
debian/python-asyncssh(Debian:14) = 2.23.0-1 No fix listed
ubuntu/python-asyncssh(Ubuntu:22.04) All versions No fix listed
ubuntu/python-asyncssh(Ubuntu:24.04) All versions No fix listed
ubuntu/python-asyncssh(Ubuntu:26.04) All versions No fix listed
ubuntu/python-asyncssh(Ubuntu:26.10) All versions No fix listed

References