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-54590: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ronf asyncssh

0
Medium
VulnerabilityCVE-2026-54590cvecve-2026-54590cwe-22cwe-639
Published: 07/08/2026 (07/08/2026, 20:36:45 UTC)
Source: CVE Database V5
Vendor/Project: ronf
Product: asyncssh

Description

AsyncSSH version 2.23.0 contains a path traversal vulnerability in the SSHServerConfig._set_tokens function. The vulnerability arises because the fix for a previous issue (CVE-2026-45309) is incomplete: it blocks certain characters before %u substitution in AuthorizedKeysFile but does not block leading ~ or ${ENV}, allowing expansion that can escape the intended authorized-keys directory. This issue is resolved in version 2.23.1.

CVSS v3.1

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

asyncssh
pkg:pypi/asyncssh
Affected versions
<2.23.1

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/08/2026, 20:59:24 UTC

Technical Analysis

CVE-2026-54590 is a path traversal vulnerability in the AsyncSSH Python package version 2.23.0. The vulnerability occurs in SSHServerConfig._set_tokens where an incomplete fix for a prior vulnerability fails to block leading ~ or environment variable expansions (${ENV}) in the AuthorizedKeysFile path. This allows the path to escape the restricted authorized-keys directory via expansion in _expand_val and Path(filename).expanduser(). The issue is fixed in version 2.23.1.

Potential Impact

The vulnerability allows an attacker to bypass directory restrictions on the AuthorizedKeysFile path, potentially enabling unauthorized modification or use of SSH authorized keys. The CVSS score is 5.9 (medium severity) with no confidentiality or availability impact but with high integrity impact. No known exploits in the wild have been reported.

Mitigation Recommendations

Upgrade AsyncSSH to version 2.23.1 or later, where this path traversal vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed by the fix in 2.23.1.

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-06-15T19:45:23.538Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4eb690c9d9e3dbe3b68725

Added to database: 07/08/2026, 20:44:00 UTC

Last enriched: 07/08/2026, 20:59:24 UTC

Last updated: 07/09/2026, 01:44:28 UTC

Views: 4

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