CVE-2026-54591 Details
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.1, a malicious SSH server can write arbitrary files on the asyncssh SCP client's filesystem by sending filenames containing ../ traversal sequences because _parse_cd_args in scp.py returns server-provided names verbatim and _recv_files joins them to the destination path without enforcing the target directory boundary. This issue is fixed in version 2.23.1.
A path traversal vulnerability has been identified in AsyncSSH versions prior to 2.23.1. This issue allows a malicious SSH server to write arbitrary files on the AsyncSSH SCP client's filesystem by sending filenames with '../' traversal sequences. The vulnerability arises because the '_parse_cd_args' function in 'scp.py' returns server-provided names without sanitization, and the '_recv_files' function joins these names to the destination path without enforcing directory boundaries. Exploitation can overwrite files like '~/.bashrc' or '~/.ssh/authorized_keys', potentially leading to code execution.
Users are advised to update AsyncSSH to version 2.23.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 8, 2026CISA-ADP
Assessed Jul 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ronf/asyncssh/commit/d730803b8e4e94c20c7580d90f94d1e05f9f58de | [email protected] | Source CodeVendor |
| https://github.com/ronf/asyncssh/releases/tag/v2.23.1 | [email protected] | Source CodeVendor |
| https://github.com/ronf/asyncssh/security/advisories/GHSA-2wxc-x7rj-hg8f | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| AsyncSSH | <= 2.23.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |
Volerion