Technical impact
The flaw exists in AsyncSSH's SSHConnection._match_known_hosts function, which accumulates trusted client host keys across multiple host‑based authentication attempts on a single connection when the trust_client_host option is enabled. An attacker who possesses a known client host’s private key can subsequently try to authenticate as a different host that shares the same key, thereby logging in as users authorized only from that host. This behavior enables unauthorized access to the SSH service with the privileges of those authorized users.
Affected Systems
The vulnerability affects the AsyncSSH library from ronf:AsyncSSH, versions 1.13.1 through 2.24.1. Any Python application that uses AsyncSSH to establish SSH connections and has trust_client_host enabled is susceptible.
Risk and Exploitability
The CVSS score of 7.4 indicates a high severity, and while the EPSS score is not available and the flaw is not listed in the CISA KEV catalog, the required conditions—ownership of a known client host’s private key and the ability to initiate an SSH session with trust_client_host enabled—make exploitation plausible. Once the prerequisites are met, an attacker can rapidly bypass authentication and gain the privileges of the authorized user on the target host.