{"id":"CVE-2026-54591","published":"2026-07-08T20:33:57Z","modified":"2026-07-09T14:40:52Z","title":"AsyncSSH: SCP Path Traversal to Arbitrary File Write","vendor":"ronf","product":"asyncssh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00492,"percentile":0.43217,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/ronf/asyncssh/security/advisories/GHSA-2wxc-x7rj-hg8f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ronf/asyncssh/commit/d730803b8e4e94c20c7580d90f94d1e05f9f58de","tags":["x_refsource_MISC"]},{"url":"https://github.com/ronf/asyncssh/releases/tag/v2.23.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":8.64},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"ronf","affectedVersions":[{"vendor":"ronf","product":"asyncssh","versions":["< 2.23.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-09T14:21:05.079234Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"asyncssh","vulnerableRanges":["<2.23.1"],"patched":["2.23.1"],"from":["GHSA-2wxc-x7rj-hg8f","PYSEC-2026-3808"],"provenance":"source"}],"summary":{"text":"The AsyncSSH Python package, in its SCP client component (scp.py), fails to restrict server-supplied filenames to the destination directory, so the client joins them to the destination path without boundary checks. A malicious SSH server can exploit this by sending traversal sequences (../) in filenames during an SCP transfer, causing the client to write arbitrary files on its filesystem, which requires that the victim use the AsyncSSH SCP client to connect to that server and the transfer to proceed (user interaction).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:43Z"},"euvd":{"id":"EUVD-2026-42399","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-46446","published":"2023-11-14","fixed":"2.14.1","kev":false},{"cve":"CVE-2026-45309","published":"2026-07-17","fixed":"2.23.0","kev":false},{"cve":"CVE-2026-54590","published":"2026-07-08","fixed":"2.23.1","kev":false},{"cve":"CVE-2026-54591","published":"2026-07-08","fixed":"2.23.1","kev":false},{"cve":"CVE-2026-62949","published":"2026-09-16","fixed":"2.24.0","kev":false,"link":{"from":"CVE-2026-54591","to":"CVE-2026-62949","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:asyncssh","fromFixed":"2.23.1","toFixed":"2.24.0","daysApart":70}]}}],"package":"PyPI:asyncssh"}}