Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted host/user name to connect()
-
Exploit${NAME} expanded inside substituted token
-
ExecutionEnv var injected into ProxyCommand arguments
-
ImpactCredentials leaked to proxy target
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection System info exposure prevention
|
| Exploitation Conditions | Two conditions must BOTH hold (per the vendor advisory): (1) the application passes a host or user name from a less-trusted source into connect() or another client function without validating it, and (2) the effective client config - AsyncSSH reads ~/.ssh/config by default when no config argument is given - contains a matching ProxyCommand that uses the %h, %n, or %r token. The environment-variable disclosure specifically affects versions 2.20.0 through 2.24.1. Limiting factors: exploitation is impossible against default/empty configs with no token-using ProxyCommand, and requires the application to forward attacker-controlled names; workarounds are to reject whitespace/quotes/$/leading '-' in untrusted names, avoid %h/%n/%r in matchable ProxyCommand entries, or pass an explicit config argument that omits them. The vendor states the fix is in 2.24.2. |
| Impact | This is a low-severity, precondition-heavy information disclosure issue, not a broad priority. The supplied CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N) scores 2.3, and the vuln.today decision label is 'monitor' - signals that agree on low urgency. No EPSS score, KEV listing, or confirmed working exploit is present in the input; the vendor GHSA advisory does include a conceptual proof-of-concept. The high attack complexity (AC:H) and explicit attack requirement (AT:P) reflect the two conditions the advisory states are BOTH needed: an application that forwards an unvalidated host/user name to connect(), and an effective client config containing a ProxyCommand that uses %h, %n, or %r. Impact is confined to confidentiality (VC:L) - leaking process environment variables such as credentials into the proxy command's arguments - with no integrity or availability impact for this CVE. Note a scope caveat to verify with the vendor: the companion GHSA (CWE-88, 'Host and User Names Can Inject ProxyCommand Arguments') describes a broader argument-injection primitive that can cause local command execution, whereas this CVE is scoped specifically to the environment-variable disclosure (CWE-497); the CWE values therefore differ between the CVE record and the advisory. Overall this is a genuine but narrow, config-dependent weakness that warrants patching on a routine cadence rather than emergency action. |
| Exploit ScenarioDerived | An application using AsyncSSH passes an attacker-influenced host or user name straight into connect(), and the account running it has a ~/.ssh/config ProxyCommand using %h/%n/%r. The attacker submits a name like 'x${SECRET}.corp.test', causing AsyncSSH to expand ${SECRET} from the process environment and place its value into the locally-run proxy command's arguments, where it can be exfiltrated to the proxy target. A conceptual PoC in the vendor advisory demonstrates this; network vector but high complexity (AC:H/AT:P) means it only works where both preconditions hold. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
Environment-variable disclosure in AsyncSSH 2.20.0 through 2.24.1 allows a name supplied to connect() to pull process environment values (potentially credentials) into SSH config options such as ProxyCommand arguments. Exploitation requires two conditions to both hold: an application must forward a host or user name from a less-trusted source without validation, and the effective client config (~/.ssh/config is read by default) must contain a matching ProxyCommand using the %h, %n or %r token - against default configs without such an entry the flaw cannot be reached. The vendor-released fix is AsyncSSH 2.24.2; a public proof of concept accompanies the advisory, and no confirmed active exploitation or KEV listing is reported.
RemediationAI
Upgrade to AsyncSSH 2.24.2, the version in which the vendor states the issue is fixed (advisory: https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346; patch commit: https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1). Where an immediate upgrade is not possible, the vendor-documented workarounds are to validate host and user names from untrusted sources before passing them to AsyncSSH, rejecting whitespace, quotes, $ and a leading '-'; to avoid %h, %n and %r in ProxyCommand entries that could match such names; or to pass an explicit config argument that does not include those token-using entries. Each workaround depends on correctly identifying every code path that supplies names to connect() or other client functions, and skipping validation or leaving default ~/.ssh/config loading in place preserves exposure, so upgrading remains the complete fix. Priority is rated monitor given the precondition-heavy nature of the issue.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AsyncSSH is a Python asyncio SSH client/server library. Its SSHConfig parser performs percent-token expansion (%h host, %n original host name, %r remote user) and ${NAME} environment expansion to build option values. Before the fix, SSHConfig._expand_val first substituted the caller-supplied host/user name into the option string and then ran environment expansion over the result, so a name containing ${SECRET} was replaced by the value of that environment variable; because the ProxyCommand string was split into arguments only after substitution, whitespace and quotes in a supplied name could also add arguments to the local proxy program (the advisory maps this argument-injection side to CWE-88 while the environment-variable leak is tracked as CWE-497, exposure of sensitive information through an insecure environmental variable). The patch replaces the two-pass regexes with a single _expand_pattern pass so substituted values are never re-expanded, and adds a _set_command handler that splits ProxyCommand into an argument list before token expansion, with ProxyCommand now stored as a sequence. Notably, the proxy command runs locally as the application's user, but not through a shell, so shell metacharacters alone are ineffective.
Know when Asyncssh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
The untrusted-name supplier is unauthenticated (PR:N), but exploitation needs a specific token-using ProxyCommand config and name-forwarding application (AC:H); impact is only low-confidentiality env-var leakage (C:L), no I/A.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The SSH server implementation of AsyncSSH before 1.12.1 does not properly check whether authentication is completed befo
Chroot escape in AsyncSSH's SFTP server (versions <= 2.24.0) lets an authenticated SFTP user read and write files outsid
Argument injection in the AsyncSSH Python library (2.7.0 through 2.24.1) lets whoever can influence the host or user nam
Improper X.509 certificate validation in AsyncSSH 1.13.1 through 2.24.1 allows authenticated remote clients to log in as
Improper authentication in AsyncSSH 1.13.1 through 2.24.1 causes server-side host-based authentication state to persist
An issue in AsyncSSH before 2.14.1 allows attackers to control the remote end of an SSH client session via packet inject
Path traversal in AsyncSSH's recursive remote-to-local SFTP copy logic (SFTPClient._copy(), reached through get(), mget(
A peer-supplied maximum packet size of zero is accepted during SSH channel-open negotiation in AsyncSSH versions prior t
An issue in AsyncSSH before 2.14.1 allows attackers to control the extension info message (RFC 8308) via a man-in-the-mi
EUVD-2026-137774
GHSA-5m5f-xp82-hrcj
NVD
CVE.org
EPSS
Exploit-DB