Description
AsyncSSH 2.20.0 before 2.24.2 contains an information disclosure vulnerability in SSHConfig._expand_val 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.
Metrics
CVSS 3.1 3.1/10
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:NWeakness enumeration
Affected software
Source: the vendor's advisory (CNA). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| ronf | AsyncSSH | >= 2.20.0, < 2.24.2 |
References
- https://github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/config.py#L148-L152
- https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst
- https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1
- https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346
- https://www.vulncheck.com/advisories/asyncssh-2.20.0-before-2.24.2-environment-variable-disclosure-via-config-token-expansion
Timeline
- Published
- Nov 29, 2026
- Last modified
- Nov 30, 2026
- NVD status
- Awaiting Analysis