Environment variable disclosure in AsyncSSH via config token expansion
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-497.
Summary
AsyncSSH from 2.20.0 before 2.24.2 expands dollar-brace NAME references inside host or user names substituted into configuration options, in SSHConfig._expand_val. An attacker who can supply unvalidated host or user names to the connect function can leak process environment variables, such as credentials, into options like ProxyCommand arguments that use %h, %n or %r. The weakness is CWE-497. CVSS 4.0 rates it low, with an attacker needing the application to pass untrusted names and a privilege requirement.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade AsyncSSH to version 2.24.2 or later, which fixes the issue. The sources list no advisory identifier for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
- Fix · CNA AsyncSSH (ronf) Fixed in 2.24.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
ronf AsyncSSH — GitHub Security Advisory (GHSA-54qj-68m2-5346)
2 records Highest priority Priority HIGH 1 HIGH, 1 LOW
Other records, highest priority first
- TI-2026-99531 Argument injection in AsyncSSH ProxyCommand token substitutionPriority HIGH 69
Timeline
- 2026-11-29 Threatist record created from CVE-2026-138375
- 2026-11-29 Alias added: GHSA-5m5f-xp82-hrcj
- 2026-11-30 CISA SSVC decision points changed
References
More ronf vulnerabilities
- TI-2026-87392 Chroot escape in AsyncSSH SFTP server lets users read and write files CVSS 3.1HIGH 8.8
- TI-2026-99531 Argument injection in AsyncSSH ProxyCommand token substitution CVSS 4.0HIGH 7.7
- TI-2026-99533 Improper authentication in AsyncSSH host-based auth lets attackers log in CVSS 4.0HIGH 7.4
- TI-2026-39424 AsyncSSH AuthorizedKeysFile username substitution bypass through ~ and environment expansion CVSS 3.1MEDIUM 5.9
- TI-2026-39425 AsyncSSH: SCP Path Traversal to Arbitrary File Write CVSS 3.1HIGH 8.1
- TI-2026-99534 Improper certificate validation in AsyncSSH lets remote clients authenticate CVSS 4.0HIGH 7.6
Sources
- CVE-2026-138375 · CVE Program
- CVE-2026-138375 · NVD
- FIRST EPSS
- GHSA-5m5f-xp82-hrcj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences