{"id":"CVE-2026-45309","published":"2026-07-17T18:40:02Z","modified":"2026-07-21T01:55:16Z","title":"AsyncSSH `AuthorizedKeysFile %u` path traversal allows attacker-selected authorized keys to authenticate a traversal…","vendor":"ronf","product":"asyncssh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00592,"percentile":0.49224,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/ronf/asyncssh/security/advisories/GHSA-g794-3fmp-753h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ronf/asyncssh/commit/2af2382cce946c959a378a62f257af253dc4ab51","tags":["x_refsource_MISC"]},{"url":"https://github.com/ronf/asyncssh/commit/3d515ba9ba0cd9990d248bdf62bcf05d51261a88","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":9.84},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"ronf","affectedVersions":[{"vendor":"ronf","product":"asyncssh","versions":["< 2.23.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-21T01:53:33.077751Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"asyncssh","vulnerableRanges":[">=2.22.0, <2.23.0"],"patched":["2.23.0"],"from":["GHSA-g794-3fmp-753h","PYSEC-2026-2384"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in AsyncSSH, a Python asyncio implementation of the SSHv2 protocol, lets the server's AuthorizedKeysFile %u token expand to the raw SSH username without sanitisation during pre-authentication config reload. An unauthenticated remote attacker over the network can exploit this when the server uses an AuthorizedKeysFile setting such as authorized_keys/%u, by supplying a username containing \"/\", \"\\\", or \"..\" segments so that an authorized-keys file outside the intended directory is read and the attacker authenticates with a key file they have chosen.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:14Z"},"euvd":{"id":"EUVD-2026-45255","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ronf-asyncssh-cve-2026-54590","children":[{"from":"CVE-2026-45309","to":"CVE-2026-54590","relation":"incomplete-fix","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"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…","from":"CVE.org","in":"CVE-2026-54590"}]}]}}