Read the docs

Environment variable disclosure in AsyncSSH via config token expansion

Priority LOW 12CWE-497Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00361 22nd percentileScored 2026-11-30
Fix Fixed AsyncSSH (ronf): 2.24.2

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

VendorProductAffected versionsFixed inStatusSource
ronfAsyncSSH2.20.0 to before 2.24.22.24.2Patch availableCNA
  • AsyncSSH Vendorronf Affected 2.20.0 to before 2.24.2 Fixed in 2.24.2 Patch available CNA

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

  1. 2026-11-29 Threatist record created from CVE-2026-138375
  2. 2026-11-29 Alias added: GHSA-5m5f-xp82-hrcj
  3. 2026-11-30 CISA SSVC decision points changed

References

  • 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
See all 8 →

Sources