CVE-2026-45309: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ronf asyncssh
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.
AI Analysis
Technical Summary
AsyncSSH, a Python package implementing SSHv2 asynchronously, improperly limits pathname access when expanding the OpenSSH-compatible AuthorizedKeysFile %u token. Before version 2.23.0, the expansion uses the raw SSH username during pre-authentication server config reload, which can include path traversal segments such as '/', '\', or '..'. This allows an attacker to cause the server to read authorized keys files outside the intended directory, enabling authentication using an attacker-controlled key file. The vulnerability is identified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).
Potential Impact
An attacker can exploit this vulnerability by crafting an SSH username containing path traversal sequences to bypass directory restrictions on authorized keys files. This can lead to unauthorized authentication with attacker-selected keys, potentially allowing unauthorized access to the SSH server. The CVSS 4.0 score is 8.2 (high severity), indicating a significant risk if exploited.
Mitigation Recommendations
This vulnerability is fixed in AsyncSSH version 2.23.0. Users should upgrade to version 2.23.0 or later to remediate the issue. Patch status is not explicitly confirmed in the vendor advisory, but the description states the issue is fixed in 2.23.0. No other mitigation or temporary fix is indicated.
CVE-2026-45309: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ronf asyncssh
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.
CVSS v4.0
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
AsyncSSH, a Python package implementing SSHv2 asynchronously, improperly limits pathname access when expanding the OpenSSH-compatible AuthorizedKeysFile %u token. Before version 2.23.0, the expansion uses the raw SSH username during pre-authentication server config reload, which can include path traversal segments such as '/', '\', or '..'. This allows an attacker to cause the server to read authorized keys files outside the intended directory, enabling authentication using an attacker-controlled key file. The vulnerability is identified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).
Potential Impact
An attacker can exploit this vulnerability by crafting an SSH username containing path traversal sequences to bypass directory restrictions on authorized keys files. This can lead to unauthorized authentication with attacker-selected keys, potentially allowing unauthorized access to the SSH server. The CVSS 4.0 score is 8.2 (high severity), indicating a significant risk if exploited.
Mitigation Recommendations
This vulnerability is fixed in AsyncSSH version 2.23.0. Users should upgrade to version 2.23.0 or later to remediate the issue. Patch status is not explicitly confirmed in the vendor advisory, but the description states the issue is fixed in 2.23.0. No other mitigation or temporary fix is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-11T20:14:43.203Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5b5eb32d1edb114c7fb4f0
Added to database: 07/18/2026, 11:08:35 UTC
Last enriched: 07/18/2026, 11:57:04 UTC
Last updated: 07/18/2026, 13:31:25 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.