---
id: CVE-2026-138375
title: >-
  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
summary: >-
  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(…
severity: low
cvss: 3.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-497
published: '2026-11-29'
updated: '2026-11-30'
sourceUpdated: '2026-11-30T18:18:53.677'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-138375'
references:
  - url: 'https://github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/config.py#L148-L152'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/asyncssh-2.20.0-before-2.24.2-environment-variable-disclosure-via-config-token-expansion
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
epss: 0.00361
epssPercentile: 0.31859
ingestedAt: '2026-11-29T15:02:12.502Z'
vendor: ronf
product: AsyncSSH
affected:
  - AsyncSSH >= 2.20.0 < 2.24.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-30T17:02:49.518331Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
