CVE-2026-138375

AsyncSSH 2.20.0 before 2.24.2 Environment Variable Disclosure via Config Token Expansion

Published Nov 29, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

AsyncSSH versions 2.20.0 through 2.24.1 contain an information disclosure flaw in the configuration token expansion logic. The library expands ${NAME} placeholders inside host or user names without sanitizing input, allowing attackers who control the host or user parameters to cause environment variables such as credentials to be injected into connection options like ProxyCommand. This vulnerability is an instance of improper handling of user-supplied data that leaks sensitive information, classified as CWE‑497.

Affected Systems

Vendors affected are those using the AsyncSSH library released by ronf under the AsyncSSH project. The flaw exists in all releases from version 2.20.0 up to and including 2.24.1; versions 2.24.2 and later contain a fix.

Risk and Exploitability

The CVSS base score of 2.3 indicates a low severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting a low likelihood of widespread exploitation. Attackers would need to provide unvalidated host or user names to the connect() function; based on the description, the likely attack vector is local or remote code execution of the client application, though it does not grant code execution, only privilege to read environment data leaked into configuration strings.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade AsyncSSH to version 2.24.2 or later.
  • Validate or sanitize host and user names before passing them to connect(), ensuring no ${NAME} patterns are expanded.
  • Monitor application logs for unexpected environment variable leakage and adjust security controls accordingly.

Generated by OpenCVE AI on November 29, 2026 at 14:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title AsyncSSH 2.20.0 before 2.24.2 Environment Variable Disclosure via Config Token Expansion
First Time appeared Asyncssh Project
Asyncssh Project asyncssh
Weaknesses CWE-497
CPEs cpe:2.3:a:asyncssh_project:asyncssh:*:*:*:*:*:*:*:*
Vendors & Products Asyncssh Project
Asyncssh Project asyncssh
References
Metrics cvssV3_1

{'score': 3.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-497

    Exposure of Sensitive System Information to an Unauthorized Control Sphere

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 30, 2026, 5:28 PM
Reserved
Nov 29, 2026, 1:09 PM
Status
Awaiting Analysis
Published
Nov 29, 2026, 2:17 PM
Modified
Nov 30, 2026, 6:18 PM