CVE-2026-138376

AsyncSSH 1.13.1 before 2.24.2 Improper Authentication via Host-Based Auth Key Carry-Over

Published Nov 29, 2026 CVSS 4.0 · 7.4 High EPSS < 1% KEV · Not listed
Description
AsyncSSH 1.13.1 before 2.24.2 contains an improper authentication vulnerability in SSHConnection._match_known_hosts that accumulates trusted client host keys across host-based authentication attempts on one connection. With trust_client_host 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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the AsyncSSH library (ronf:AsyncSSH) to version 2.24.2 or newer.
  • Disable the trust_client_host option if it is not required for your deployment.
  • If an upgrade is not immediately possible, restrict SSH access to only trusted hosts or implement additional verification mechanisms to prevent key reuse across connections.

Generated by OpenCVE AI on November 29, 2026 at 14:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ronf
Ronf asyncssh
Vendors & Products Ronf
Ronf asyncssh
Type Values Removed Values Added
Description AsyncSSH 1.13.1 before 2.24.2 contains an improper authentication vulnerability in SSHConnection._match_known_hosts that accumulates trusted client host keys across host-based authentication attempts on one connection. With trust_client_host 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.
Title AsyncSSH 1.13.1 before 2.24.2 Improper Authentication via Host-Based Auth Key Carry-Over
First Time appeared Asyncssh Project
Asyncssh Project asyncssh
Weaknesses CWE-287
CPEs cpe:2.3:a:asyncssh_project:asyncssh:*:*:*:*:*:*:*:*
Vendors & Products Asyncssh Project
Asyncssh Project asyncssh
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 7.4, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 30, 2026, 2:27 PM
Reserved
Nov 29, 2026, 1:09 PM
Status
Awaiting Analysis
Published
Nov 29, 2026, 2:17 PM
Modified
Nov 30, 2026, 3:17 PM