CVE-2026-45309
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-07-21 |
Timeline
- 2026-05-27GitHub advisory published (GHSA-g794-3fmp-753h)51 days before publication
- 2026-07-17Published by the CNA18:40 UTC
- 2026-07-21CISA SSVC decision recorded4 days after publication
Exploit and advisory records
GitHub advisory GHSA-g794-3fmp-753h, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI asyncssh | from 2.22.0 before 2.23.0 | 2.23.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| asyncssh_project asyncssh | before 2.23.0fixed in 2.23.0 | 2.23.0 |
References
- https://github.com/ronf/asyncssh/commit/2af2382cce946c959a378a62f257af253dc4ab51
- https://github.com/ronf/asyncssh/commit/3d515ba9ba0cd9990d248bdf62bcf05d51261a88
- https://github.com/ronf/asyncssh/security/advisories/GHSA-g794-3fmp-753h
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-45309'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-45309'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-45309'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-45309'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).