CVE-2026-54591: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ronf asyncssh
AsyncSSH versions prior to 2.23.1 contain a path traversal vulnerability in the SCP client implementation. A malicious SSH server can exploit this by sending crafted filenames with '../' sequences, causing arbitrary file writes outside the intended directory. This issue is resolved in version 2.23.1.
AI Analysis
Technical Summary
AsyncSSH is a Python package implementing SSHv2 asynchronously. Versions before 2.23.1 have a CWE-22 path traversal vulnerability in the SCP client. The vulnerability arises because the _parse_cd_args function returns server-supplied filenames verbatim, and _recv_files joins these names to the destination path without restricting directory boundaries. This allows a malicious SSH server to write files arbitrarily on the client's filesystem. The vulnerability is fixed in version 2.23.1.
Potential Impact
An attacker controlling an SSH server can cause the AsyncSSH SCP client to write files to arbitrary locations on the client's filesystem, potentially leading to integrity violations and denial of availability. There is no confidentiality impact reported. The CVSS v3.1 score is 8.1 (High), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity and availability impact.
Mitigation Recommendations
Upgrade AsyncSSH to version 2.23.1 or later, where this path traversal vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is not explicitly stated in the vendor advisory, but the fix is confirmed in version 2.23.1.
CVE-2026-54591: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ronf asyncssh
Description
AsyncSSH versions prior to 2.23.1 contain a path traversal vulnerability in the SCP client implementation. A malicious SSH server can exploit this by sending crafted filenames with '../' sequences, causing arbitrary file writes outside the intended directory. This issue is resolved in version 2.23.1.
CVSS v3.1
Score 8.1high
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 is a Python package implementing SSHv2 asynchronously. Versions before 2.23.1 have a CWE-22 path traversal vulnerability in the SCP client. The vulnerability arises because the _parse_cd_args function returns server-supplied filenames verbatim, and _recv_files joins these names to the destination path without restricting directory boundaries. This allows a malicious SSH server to write files arbitrarily on the client's filesystem. The vulnerability is fixed in version 2.23.1.
Potential Impact
An attacker controlling an SSH server can cause the AsyncSSH SCP client to write files to arbitrary locations on the client's filesystem, potentially leading to integrity violations and denial of availability. There is no confidentiality impact reported. The CVSS v3.1 score is 8.1 (High), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity and availability impact.
Mitigation Recommendations
Upgrade AsyncSSH to version 2.23.1 or later, where this path traversal vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is not explicitly stated in the vendor advisory, but the fix is confirmed in version 2.23.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T19:45:23.539Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4eb690c9d9e3dbe3b6872a
Added to database: 07/08/2026, 20:44:00 UTC
Last enriched: 07/08/2026, 20:58:50 UTC
Last updated: 07/08/2026, 22:23:01 UTC
Views: 3
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.