Skip to main content

AsyncSSH EUVDEUVD-2026-137776

| CVE-2026-138377 HIGH
Improper Certificate Validation (CWE-295)
2026-11-29 VulnCheck GHSA-ffvr-qhv7-7p2m
7.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain X.509 user cert under host-only CA
  2. Delivery
    Open connection, send host-based auth attempt with any host key
  3. Exploit
    Host-only CA cert appended to user trust anchors
  4. Execution
    Present X.509 user certificate for public-key auth
  5. Impact
    Authenticate as subject-named user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation requires a specific, non-default AsyncSSH server configuration, so this is not remote-unauthenticated against defaults. For the primary (X.509) path, the server must (a) use host-based authentication with known_client_hosts, (b) list one or more X.509 certificates/CA certs in known_client_hosts, and (c) have authorized keys that accept X.509 user certificates by subject name; the attacker must hold a user certificate issued under that host-trusted CA. The attacker triggers the bug by making a host-based auth attempt with any host key, which persistently adds the host-only CA to the connection's X.509 user-cert trust anchors, then authenticates with the user certificate. The related host-key-carryover variant additionally requires trust_client_host to be enabled (non-default) and the application to override validate_host_based_user() using client_host - the default implementation compares only usernames and is unaffected. LIMITING FACTORS: non-default settings (known_client_hosts with X.509, subject-name X.509 user auth, or trust_client_host) are the main constraint; servers not using host-based auth or not listing X.509 certs in known_client_hosts are not exploitable. Workarounds per vendor: don't list X.509 certs in known_client_hosts on servers accepting X.509 user certs by subject name; leave trust_client_host disabled or don't rely on client_host in validate_host_based_user(). Upgrading to 2.24.2 is the complete fix.

Impact

This is a genuine authentication-bypass/improper-certificate-validation flaw (CWE-295, also tracked as CWE-287/CWE-668 in the vendor GHSA) but one gated behind a non-default and relatively uncommon server configuration, which keeps real-world priority moderate rather than critical. The official CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N, VC:H/VI:H/VA:N) scores 7.6: network-reachable, but with high attack complexity, a present attack requirement, and low privileges required - meaning exploitation is not trivial and not against default settings. The vuln.today decision label is this_week (not act_now/emergency). It is NOT listed in CISA KEV and no EPSS probability was supplied, so there is no evidence of active or widespread exploitation; this should be treated as no public exploit identified as working code, though the vendor GHSA includes a step-by-step proof-of-concept narrative (see exploit_scenario). The signals are internally consistent - high severity from the impact (logging in as an arbitrary user) is tempered by AC:H/AT:P/PR:L and the absence of KEV/EPSS, pointing to a patch-this-cycle issue for affected deployments rather than an emergency. Key caveat: exploitability depends entirely on whether a given server actually uses host-based auth with known_client_hosts (and, for the X.509 path, lists X.509 CA certs there while also accepting X.509 user certs by subject name); most AsyncSSH deployments do not, so blanket risk is lower than the base score suggests.

Exploit ScenarioDerived

On an AsyncSSH server that lists an X.509 CA certificate in known_client_hosts and whose authorized keys accept X.509 user certificates by subject name, an attacker holding a user certificate issued under that CA first makes a host-based authentication attempt with any host key (it may fail). This appends the host-only CA certificate to the server's trust anchors for the rest of the connection, so the attacker then presents their user certificate for public-key auth and is accepted, logging in as the subject-named user. The vendor advisory documents a concrete proof-of-concept for this and for a related trust-carryover variant; it is a described PoC, not verified working exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

Improper X.509 certificate validation in AsyncSSH 1.13.1 through 2.24.1 allows authenticated remote clients to log in as other users when a server combines host-based authentication with X.509 certificates listed in known_client_hosts. A host-based authentication attempt - even one that fails - with any host key appends host-only CA certificates to the connection's trusted X.509 certificates, and that same list is later used as the trust anchor set when validating X.509 user certificates; a client holding a user certificate issued under that CA can therefore authenticate as the mapped subject. A second, related defect lets host keys trusted for one client host remain trusted for later attempts on the same connection, which only matters when trust_client_host is enabled and the application overrides validate_host_based_user() to use client_host. Exploitation depends on non-default configuration, the vendor advisory documents a proof-of-concept scenario, and no working exploit code is confirmed publicly available.

RemediationAI

Vendor-released patch: AsyncSSH 2.24.2, which is the complete fix; upgrade with pip install --upgrade asyncssh and confirm the installed version is 2.24.2 or later (release notes at https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst, fix commit https://github.com/ronf/asyncssh/commit/19731a172894f7d82fbb69cb477f6f3c2103bf97, advisory https://github.com/ronf/asyncssh/security/advisories/GHSA-4hgp-7gmx-wvfg). If upgrading cannot be done immediately, the vendor workarounds are: on servers that accept X.509 user certificates by subject name, remove X.509 certificates from known_client_hosts - the trade-off is that client hosts then must be trusted through plain host keys rather than CA-signed certificates; and for the host-key-carryover variant, leave trust_client_host disabled (the default) or stop relying on client_host inside validate_host_based_user(), with the trade-off that host-name-based authorization decisions are no longer available and only username comparison remains. Servers that do not use host-based authentication or do not list X.509 certificates in known_client_hosts carry no exposure through these paths but should still be upgraded on the normal cycle; priority guidance places this fix in the current week's work.

Affected VersionsENISA

asyncssh 1.13.1 <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 implementation of the SSH protocol, distributed as the pip package asyncssh (CPE cpe:2.3:a:ronf:asyncssh:*:*:*:*:*:*:*:*) from the ronf project. The flaw is an instances-of-trust problem in the CWE-295 (improper certificate validation) class, tracked additionally in the vendor GHSA as CWE-287 and CWE-668. During host-based authentication the server resolves known_client_hosts to find the host keys, CA keys and X.509 certificates trusted for a named client host. In vulnerable versions, X.509 certificates returned by that lookup were appended to the connection-wide _x509_trusted_certs list, which is also the anchor set used by _validate_x509_host_certificate_chain and by public key user authentication, so a certificate trusted only to vouch for client hosts became trusted to vouch for users for the remainder of the connection. Separately, host keys from each lookup were added to a per-connection set rather than replacing earlier results, so a client holding one known host key could make a first attempt naming that host and a second attempt signed with the same key while naming a different known client host. The vendor fix (commit 19731a172894f7d82fbb69cb477f6f3c2103bf97) splits the two purposes: known-host certificates are held in a new _x509_known_host_certs list used only for host certificate chain validation, and _match_known_hosts now replaces _trusted_host_keys instead of adding to it. The default validate_host_based_user() compares only usernames, so the host-key-carryover variant does not affect default applications.

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 7.6 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.8 MEDIUM

Network-reachable but needs non-default host-based/X.509 config plus a multi-step attempt (AC:H) and a user certificate under the trusted CA (PR:L); impersonation yields C:H/I:H, no availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/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
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

AsyncSSH 1.13.1 before 2.24.2 contains an improper certificate validation vulnerability that allows remote clients to authenticate as users by abusing X.509 certificates matched in known_client_hosts. Attackers can make a failed host-based authentication attempt with any host key, adding host-only CA certificates to the trust anchors, then authenticate using user certificates issued under those CAs.

Technical POC Analysis

Metadata note: the advisory text supplied (GHSA-4hgp-7gmx-wvfg) rates this issue Moderate / 5.9 with CWE-287 + CWE-668 and states "No known CVE".

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

AsyncSSH versions 1.13.1 through 2.24.1 contain a HIGH-severity authentication bypass that could allow a remote attacker to impersonate other users and gain unauthorized access to systems relying on this library for secure shell connectivity. Organizations using AsyncSSH in non-default configurations combining host-based authentication with X.509 certificates are at risk, potentially compromising sensitive data and system integrity. Leadership should prioritize patch deployment due to the potential for lateral movement and privilege escalation within affected environments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 77% exploitable
Prevalence
Medium
popular Python asyncio SSH library, moderate but not universal production footprint
Social Media
1
Sightings
Data Quality
4 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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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-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

CVE-2026-138375 LOW
2.3 Nov 29

Environment-variable disclosure in AsyncSSH 2.20.0 through 2.24.1 allows a name supplied to connect() to pull process en

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