{"id":"CVE-2026-54590","published":"2026-07-08T20:36:45Z","modified":"2026-07-10T15:00:21Z","title":"AsyncSSH AuthorizedKeysFile username substitution bypass through ~ and environment expansion","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. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00336,"percentile":0.2771,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/ronf/asyncssh/security/advisories/GHSA-qr67-gv47-xwwh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ronf/asyncssh/commit/3d515ba9ba0cd9990d248bdf62bcf05d51261a88","tags":["x_refsource_MISC"]},{"url":"https://github.com/ronf/asyncssh/releases/tag/v2.23.1","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":5.54},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"ronf","affectedVersions":[{"vendor":"ronf","product":"asyncssh","versions":["< 2.23.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-10T15:00:13.292812Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"asyncssh","vulnerableRanges":["<2.23.1"],"patched":["2.23.1"],"from":["GHSA-qr67-gv47-xwwh","PYSEC-2026-3809"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-42400","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ronf-asyncssh-cve-2026-54590","parents":[{"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"}]}]}}