CVE-2026-138374: AsyncSSH 2.7.0 before 2.24.2 Argument Injection via ProxyCommand Token Substitution
AsyncSSH 2.7.0 before 2.24.2 contains an argument injection vulnerability that allows attackers supplying host or user names to add arguments to the local proxy program by embedding whitespace or quote characters substituted into %h, %n or %r ProxyCommand tokens before splitting. Attackers can inject an -o option into the common ssh -W %h:%p bastion ProxyCommand to make the local ssh client run attacker-chosen commands as the application user.
Affected Software
Event History
Frequently Asked Questions
Which AsyncSSH versions are affected?
AsyncSSH versions from 2.7.0 up to, but not including, 2.24.2 are affected.
What application conditions make exploitation possible?
An attacker must be able to supply a host name or user name that is substituted into the %h, %n, or %r tokens of a ProxyCommand. The vulnerable command handling then splits values containing whitespace or quote characters into additional arguments for the local proxy program.
What is the practical impact of a successful attack?
In a common ssh -W %h:%p bastion ProxyCommand configuration, an attacker can inject an -o option into the local ssh invocation. This can cause the local ssh client to run attacker-chosen commands as the application user.