CVE-2026-54591
Received Received - Intake

Path Traversal in AsyncSSH SCP Client

Vulnerability report for CVE-2026-54591, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-08

Last updated on: 2026-07-08

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-08
Last Modified
2026-07-08
Generated
2026-07-09
AI Q&A
2026-07-09
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
asyncssh asyncssh 2.23.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the AsyncSSH Python package, which implements the SSHv2 protocol asynchronously. Before version 2.23.1, a malicious SSH server could exploit the SCP client by sending filenames containing directory traversal sequences (../). The client’s _parse_cd_args function returns these server-provided filenames without validation, and _recv_files joins them to the destination path without enforcing directory boundaries. This allows the server to write arbitrary files anywhere on the client’s filesystem.

Impact Analysis

This vulnerability can have serious impacts because it allows a malicious SSH server to write arbitrary files on the client’s filesystem. This can lead to unauthorized modification or creation of files, potentially resulting in data corruption, system compromise, or execution of malicious code. The CVSS score of 8.1 indicates a high severity with impacts on integrity and availability.

Mitigation Strategies

To mitigate this vulnerability, upgrade AsyncSSH to version 2.23.1 or later, where the issue has been fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54591. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart