Skip to content
OpenAdvisories
High · 8.2 CVE-2026-45309 EUVD-2026-45255GHSA-g794-3fmp-753hPYSEC-2026-2384

AsyncSSH `AuthorizedKeysFile %u` path traversal allows attacker-selected authorized keys to authenticate a traversal username

Published Jul 17, 2026 · Updated Jul 21, 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.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.

Affected products

VendorProductAffectedFixed
ronf asyncssh < 2.23.0 —

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.23.0-1 —
Debian 13 python-asyncssh No fix yet —
Debian 12 python-asyncssh No fix yet —
ReleasePackageFixed inAdvisory
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)
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 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-asyncssh 2.23.1-1.1 openSUSE-SU-2026:11042-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling airflow-3 3.2.1-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI asyncssh >= 2.22.0, < 2.23.0 2.23.0 GHSA-g794-3fmp-753h

Advisories 1

References