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.
Published: 2026-07-08
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

AsyncSSH, a Python SSH library, has a flaw where the SCP client does not enforce directory boundaries. As CWE-22, it allows a malicious SSH server to send filenames containing traversal sequences (../) that the client accepts verbatim and joins to a destination path. This can lead to arbitrary files being written anywhere on the client’s filesystem, potentially overwriting critical files or inserting malicious payloads, thereby compromising confidentiality, integrity, or availability.

Affected Systems

The product affected is AsyncSSH by ronf. All releases prior to 2.23.1 are vulnerable. This issue is fixed in version 2.23.1 and later. Any application or service that uses an older AsyncSSH release is impacted.

Risk and Exploitability

The CVSS score is 8.1, indicating high severity. The EPSS score is less than 1%, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is remote: an attacker controlling an SSH server can send a malicious SCP request to a vulnerable client, enabling arbitrary file writes without needing local access. Once exploited, the attacker can compromise or disrupt the client system.

Generated by OpenCVE AI on July 29, 2026 at 13:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade AsyncSSH to version 2.23.1 or newer, which resolves the path traversal flaw.
  • Disable the SCP feature in the client or implement pre‑write checks that reject filenames containing traversal sequences, thereby enforcing proper path validation before joining with the destination directory.
  • Restrict the SCP client to connect only to trusted, authenticated SSH servers by enforcing host key verification and maintaining a whitelist of acceptable server hosts, ensuring that only legitimate servers can initiate file transfers.

Generated by OpenCVE AI on July 29, 2026 at 13:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Ronf
Ronf asyncssh
Vendors & Products Ronf
Ronf asyncssh

Fri, 10 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 09 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
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.
Title AsyncSSH: SCP Path Traversal to Arbitrary File Write
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T14:40:52.505Z

Reserved: 2026-06-15T19:45:23.539Z

Link: CVE-2026-54591

cve-icon Vulnrichment

Updated: 2026-07-09T14:21:05.827Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-08T20:33:57Z

Links: CVE-2026-54591 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T13:30:06Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')