Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain X.509 user cert under host-only CA
-
DeliveryOpen connection, send host-based auth attempt with any host key
-
ExploitHost-only CA cert appended to user trust anchors
-
ExecutionPresent X.509 user certificate for public-key auth
-
ImpactAuthenticate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
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 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
Environment-variable disclosure in AsyncSSH 2.20.0 through 2.24.1 allows a name supplied to connect() to pull process en
EUVD-2026-137776
GHSA-ffvr-qhv7-7p2m
NVD
CVE.org
EPSS
Exploit-DB