Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-45309: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ronf asyncssh

0
High
VulnerabilityCVE-2026-45309cvecve-2026-45309cwe-22
Published: 07/17/2026 (07/17/2026, 18:40:02 UTC)
Source: CVE Database V5
Vendor/Project: ronf
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

asyncssh
pkg:pypi/asyncssh
Affected versions
<2.23.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 11:57:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses