CVE-2026-138376: AsyncSSH 1.13.1 before 2.24.2 Improper Authentication via Host-Based Auth Key Carry-Over
AsyncSSH 1.13.1 before 2.24.2 contains an improper authentication vulnerability in SSHConnection.matchknownhosts that accumulates trusted client host keys across host-based authentication attempts on one connection. With trustclienthost enabled, attackers holding one known client host's private key can retry naming another known host and log in as users authorized only from that host.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.24.2
Event History
Frequently Asked Questions
Which AsyncSSH deployments are exposed?
Deployments using AsyncSSH versions from 1.13.1 up to, but not including, 2.24.2 are affected when client host trust is enabled with trust_client_host.
What does an attacker need to exploit this issue?
The attacker needs the private key of one client host already known to the server. They can then make repeated host-based authentication attempts while naming another known host.
What access could exploitation provide?
An attacker may log in as users whose host-based authorization is restricted to the other named host, despite possessing only the private key for a different trusted client host.