---
id: CVE-2026-138376
title: >-
  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
summary: >-
  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_…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-287
published: '2026-11-29'
updated: '2026-11-30'
sourceUpdated: '2026-11-30T15:17:25.467'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-138376'
references:
  - url: >-
      https://github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/connection.py#L1274-L1298
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ronf/asyncssh/commit/19731a172894f7d82fbb69cb477f6f3c2103bf97
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/security/advisories/GHSA-4hgp-7gmx-wvfg'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/asyncssh-1.13.1-before-2.24.2-improper-authentication-via-host-based-auth-key-carry-over
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/security/advisories/GHSA-4hgp-7gmx-wvfg'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00766
epssPercentile: 0.56748
ingestedAt: '2026-11-29T15:02:12.502Z'
vendor: ronf
product: AsyncSSH
affected:
  - AsyncSSH >= 1.13.1 < 2.24.2
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-30T14:26:41.213681Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
