AsyncSSH 2.20.0 before 2.24.2 Environment Variable Disclosure via Config Token Expansion
- State
- Published
- Severity
- 2.3 Low
- Published
- Nov 29, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 29, 2026
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.
| Product | Versions |
|---|---|
| AsyncSSH ronf | 2.20.0 to before 2.24.2 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 2.3 Low | VulnCheck | |
| 3.1 | 3.1 Low | VulnCheck |
Weaknesses
- CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere
References
- GitHub Security Advisory (GHSA-54qj-68m2-5346)Vendor Advisory
- https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1Patch
- https://github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/config.py#L148-L152Technical Details
- https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rstRelease Notes
- VulnCheck Advisory: AsyncSSH 2.20.0 before 2.24.2 Environment Variable Disclosure via Config Token ExpansionThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.