CVE-2026-138374: AsyncSSH 2.7.0 before 2.24.2 Argument Injection via ProxyCommand Token Substitution

Published Nov 29, 2026
·
Updated

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

1 affected component
pypi/asyncssh>=2.7.0<2.24.2

Event History

Nov 29, 2026
CVE Published
via MITRE·01:24 PM
Data Sourced
via MITRE·01:24 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which AsyncSSH versions are affected?

AsyncSSH versions from 2.7.0 up to, but not including, 2.24.2 are affected.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203