CVE-2026-138375: AsyncSSH 2.20.0 before 2.24.2 Environment Variable Disclosure via Config Token Expansion
AsyncSSH 2.20.0 before 2.24.2 contains an information disclosure vulnerability in SSHConfig.expandval that expands ${NAME} references inside substituted host or user names. Attackers supplying unvalidated host or user names to connect() can leak process environment variables like credentials into options such as ProxyCommand arguments using %h, %n or %r.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.24.2