Vulnerability GHSA-2wxc-x7rj-hg8f

High Risk
HIGH RISK
CVSS Score: 8.1
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
3 months ago
August 26, 2026 at 03:34 PM UTC
asyncssh has SCP Path Traversal to Arbitrary File Write
0.8.1 - 1.6.2 and 1.7.1 - 2.23.0
0.8.1 - 1.6.2 and 1.7.1 - 2.23.0

Summary

asyncssh has SCP Path Traversal to Arbitrary File Write

Details

Product asyncssh (all versions through 2.23.0)
Related CVE-2019-6111 (same class in OpenSSH)
Fix AsyncSSH 2.23.1

A malicious SSH server can write arbitrary files on the asyncssh SCP client's filesystem by sending filenames containing ../ traversal sequences. The SCP receive path does not currently sanitize server-provided filenames. By chaining directory traversals via the D (directory) action, an attacker can escape any target directory and overwrite ~/.bashrc, ~/.ssh/rc, or ~/.ssh/authorized_keys, achieving code execution. This is the same vulnerability class as CVE-2019-6111. The mitigation applied in OpenSSH does not appear to have been adopted in asyncssh.

Reproduction:

Link to reproduction script: path_traversal_poc.zip

docker build -t asyncssh-scp-traversal -f Dockerfile .
docker run --rm asyncssh-scp-traversal

The attached poc_scp_traversal.py starts a malicious SSH server in-process using asyncssh's own API, then downloads from it via asyncssh.scp().

Expected Output:

image

Impacted packages

Timeline

Published
3 months ago
August 26, 2026 at 03:34 PM UTC
Fixed (2.23.1)
5 months ago
June 07, 2026 at 02:15 PM UTC
Last Modified
2 months ago
September 10, 2026 at 12:25 PM UTC