CVE-2026-138375
Awaiting Analysis Awaiting Analysis - Queue

AsyncSSH Environment Variable Leak via SSHConfig

Vulnerability report for CVE-2026-138375, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-29

Last updated on: 2026-11-29

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-29
Last Modified
2026-11-29
Generated
2026-11-29
AI Q&A
2026-11-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ronf AsyncSSH From 2.20.0 (inc) to 2.24.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-497 The product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

AsyncSSH 2.20.0 before 2.24.2 has an information disclosure flaw in SSHConfig._expand_val. It expands ${NAME} references in host or user names, allowing attackers to leak process environment variables like credentials into ProxyCommand arguments using tokens such as %h, %n, or %r when unvalidated names are supplied to connect().

Detection Guidance

To detect this vulnerability, check the AsyncSSH version installed on your system. Run: asyncssh --version. If the version is between 2.20.0 and 2.23.x, the system is vulnerable. Additionally, review any custom SSH configurations for ProxyCommand arguments using tokens like %h, %n, or %r that might expose environment variables.

Impact Analysis

Attackers could exploit this to expose sensitive environment variables, including credentials, if they can supply crafted host or user names to AsyncSSH's connect() method. This could lead to unauthorized access or credential theft.

Compliance Impact

This vulnerability could lead to unauthorized exposure of sensitive data, potentially violating GDPR (data protection) and HIPAA (health information privacy) by leaking credentials or other confidential environment variables.

Mitigation Strategies

Immediately upgrade AsyncSSH to version 2.24.2 or later. If upgrading is not possible, avoid using unvalidated host or user names in connect() calls and review SSH configurations to remove or secure ProxyCommand arguments that could leak environment variables.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138375. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...