AsyncSSH 1.13.1 before 2.24.2 contains an improper authentication vulnerability in SSHConnection._match_known_hosts
Affects asyncsshSource GCVE Database
Not known to be exploited · CVSS 7.4 High : upgrade to 2.24.2 soon.
Data as of 29 Nov 2026, 16:59 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 7.4 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.9 |
- Patch
- Available – fixed in 2.24.2
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Nov 2026.
What to do
Upgrade asyncssh to 2.24.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIasyncsshpkg:pypi/asyncsshOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade AsyncSSH to version 2.24.2 or later, where this vulnerability is fixed. No other mitigation is indicated or required according to the available data.
Description
AsyncSSH versions from 1.13.1 up to but not including 2.24.2 contain an improper authentication vulnerability in the SSHConnection._match_known_hosts method. This flaw allows accumulation of trusted client host keys across host-based authentication attempts on a single connection. When the trust_client_host option is enabled, an attacker with access to one known client host's private key can attempt to impersonate another known host and gain unauthorized access as users authorized only from that other host. The vulnerability has a medium severity with a CVSS score of 5.9 and was fixed in version 2.24.2.
References
- github.com/ronf/asyncssh/security/advisories/GHSA-4hgp-7gmx-wvfg (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-138376 (opens in a new tab)
- github.com/ronf/asyncssh/commit/19731a172894f7d82fbb69cb477f6f3c2103bf97 (opens in a new tab)
- github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/connection.py (opens in a new tab)
- github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst (opens in a new tab)
- vulncheck.com/advisories/asyncssh-1.13.1-before-2.24.2-improper-authentication-via-host-based-auth-key-carry-over (opens in a new tab)