Skip to main content

AsyncSSH EUVDEUVD-2026-137774

| CVE-2026-138375 LOW
Exposure of Sensitive System Information to an Unauthorized Control Sphere (CWE-497)
2026-11-29 VulnCheck GHSA-5m5f-xp82-hrcj
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted host/user name to connect()
  2. Exploit
    ${NAME} expanded inside substituted token
  3. Execution
    Env var injected into ProxyCommand arguments
  4. Impact
    Credentials 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

asyncssh 2.20.0 <2.24.2

Affected Packages

euvd asyncssh fix: 2.24.2

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

Vendor (VulnCheck) PRIMARY 2.3 LOW
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 78% exploitable
Prevalence
Medium
popular Python asyncio SSH library, common but not universally deployed
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2018-7749 CRITICAL
9.8 Mar 12

The SSH server implementation of AsyncSSH before 1.12.1 does not properly check whether authentication is completed befo

CVE-2026-102643 HIGH
8.8 Nov 09

Chroot escape in AsyncSSH's SFTP server (versions <= 2.24.0) lets an authenticated SFTP user read and write files outsid

CVE-2026-138374 HIGH
7.7 Nov 29

Argument injection in the AsyncSSH Python library (2.7.0 through 2.24.1) lets whoever can influence the host or user nam

CVE-2026-138377 HIGH
7.6 Nov 29

Improper X.509 certificate validation in AsyncSSH 1.13.1 through 2.24.1 allows authenticated remote clients to log in as

CVE-2026-138376 HIGH
7.4 Nov 29

Improper authentication in AsyncSSH 1.13.1 through 2.24.1 causes server-side host-based authentication state to persist

CVE-2023-46446 MEDIUM
6.8 Nov 14

An issue in AsyncSSH before 2.14.1 allows attackers to control the remote end of an SSH client session via packet inject

CVE-2026-77473 MEDIUM
6.5 Nov 09

Path traversal in AsyncSSH's recursive remote-to-local SFTP copy logic (SFTPClient._copy(), reached through get(), mget(

CVE-2026-62949 MEDIUM
6.5 Sep 16

A peer-supplied maximum packet size of zero is accepted during SSH channel-open negotiation in AsyncSSH versions prior t

CVE-2023-46445 MEDIUM
5.9 Nov 14

An issue in AsyncSSH before 2.14.1 allows attackers to control the extension info message (RFC 8308) via a man-in-the-mi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy