---
id: CVE-2026-138377
title: >-
  AsyncSSH 1.13.1 before 2.24.2 contains an improper certificate validation
  vulnerability that allows remote clients to authenticate as users by abusing
  X.509 certificates matched in known_client_hosts
summary: >-
  AsyncSSH 1.13.1 before 2.24.2 contains an improper certificate validation
  vulnerability that allows remote clients to authenticate as users by abusing
  X.509 certificates matched in known_client_hosts. Attackers can make a failed
  host-bas…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-295
vendor: ronf
product: AsyncSSH
affected:
  - AsyncSSH >= 1.13.1 < 2.24.2
published: '2026-11-29'
updated: '2026-12-02'
sourceUpdated: '2026-12-02T19:17:59.350'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-138377'
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-certificate-validation-via-known-client-hosts
    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.00373
epssPercentile: 0.33306
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-12-02T18:15:33.660079Z'
ingestedAt: '2026-11-29T15:02:12.503Z'
---

## Overview

AsyncSSH 1.13.1 before 2.24.2 contains an improper certificate validation vulnerability that allows remote clients to authenticate as users by abusing X.509 certificates matched in known_client_hosts. Attackers can make a failed host-based authentication attempt with any host key, adding host-only CA certificates to the trust anchors, then authenticate using user certificates issued under those CAs.

## Remediation

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