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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-07-08T20:33:57.420Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-2wxc-x7rj-hg8f, PYSEC-2026-3808
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- ronf asyncssh: < 2.23.1
- asyncssh (PyPI): before 2.23.1

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://github.com/ronf/asyncssh/security/advisories/GHSA-2wxc-x7rj-hg8f> (web)
- <https://github.com/ronf/asyncssh/commit/d730803b8e4e94c20c7580d90f94d1e05f9f58de> (web)
- <https://github.com/ronf/asyncssh/releases/tag/v2.23.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54591> (advisory)
- <https://github.com/ronf/asyncssh> (package)
- <https://pypi.org/project/asyncssh> (package)
- <https://github.com/advisories/GHSA-2wxc-x7rj-hg8f> (advisory)

## Sources

- CVE List: [CVE-2026-54591](https://www.cve.org/CVERecord?id=CVE-2026-54591), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-2wxc-x7rj-hg8f](https://github.com/advisories/GHSA-2wxc-x7rj-hg8f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54591](https://nvd.nist.gov/vuln/detail/CVE-2026-54591), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-3808](https://osv.dev/vulnerability/PYSEC-2026-3808), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-54591 · Whole record: https://cve.day/CVE-2026-54591.json · Rebuilt by cve.day 2026-11-25T22:59:27.439Z
