Technical impact
AsyncSSH 2.7.0 through 2.24.1 contains an argument injection flaw that lets an attacker who can influence the host or user name passed to an AsyncSSH connection embed special characters and whitespace into the %h, %n, or %r tokens used in a ProxyCommand. This causes the underlying local ssh command to be invoked with additional arguments supplied by the attacker. As a result, the attacker can add an -o option to the default "ssh -W %h:%p" ProxyCommand to run an arbitrary command as the application user, thereby providing remote code execution capabilities.
Affected Systems
The vulnerability affects the AsyncSSH project’s AsyncSSH library in the 2.7.0 through 2.24.1 releases. Systems that use these library versions to establish SSH connections via a ProxyCommand are impacted.
Risk and Exploitability
The CVSS score of 7.7 indicates high severity. The EPSS score is not available, so the likelihood of exploitation is uncertain, and the vulnerability is not listed in CISA’s KEV catalog. It is inferred that an attacker who can control the host or user name used in an AsyncSSH connection—such as through a web application or other software that delegates SSH connections—can exploit the flaw by injecting whitespace or quote characters to manipulate the local ssh command and execute attacker‑chosen commands.