AsyncSSH
AsyncSSH: SCP Path Traversal to Arbitrary File Write
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.1high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
ronf asyncssh
- < 2.23.1
Fixed in 2.23.1
Mitigation
Upgrade asyncssh to 2.23.1 or later.
References
- Vendor advisory github.com/ronf/asyncssh/security/advisories/G…
- Patch github.com/ronf/asyncssh/commit/d730803b8e4e94…
- Release notes github.com/ronf/asyncssh/releases/tag/v2.23.1
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.