AsyncSSH 2.24.2 Patches Host-Based Auth Flaw Allowing Cross-Host Login

2 min read
Source: CVEs | Zero Wire | Cloudflare Radar
AsyncSSH 2.24.2 Patches Host-Based Auth Flaw Allowing Cross-Host Login
Photo: CVEs | Zero Wire | Cloudflare Radar
TL;DR

A high-severity vulnerability in the AsyncSSH Python library has been patched in version 2.24.2. The flaw, rated 7.4 on the CVSS 4.0 scale, allowed attackers to bypass authentication by carrying over trusted host keys across different host-based authentication attempts on a single connection.

Key points

  • The vulnerability affects AsyncSSH versions 1.13.1 through 2.24.1, specifically the SSHConnection._match_known_hosts method.
  • With the trust_client_host option enabled, the software accumulated trusted client host keys across multiple host-based authentication attempts on one connection.
  • An attacker possessing the private key for one known client host could retry naming another known host to log in as a user authorized only from that second host.
  • The flaw was rated 7.4 (High) under CVSS 4.0 and 5.9 (Medium) under CVSS 3.1, with high impact on confidentiality and integrity but no impact on availability.
  • The fix was released in version 2.24.2, which ensures that host key trust from one host-based authentication attempt no longer carries over to later attempts.

Background

This incident follows a series of recent authentication bypass vulnerabilities in other software, including Bytebase DBHub and VMware vCenter. AsyncSSH is a Python package providing asynchronous SSHv2 protocol support, maintained by Ron Frederick. The vulnerability was reported by GitHub users yutljp and Chris Purcell, who also identified a related issue regarding reverse DNS verification.

Why it matters

The vulnerability highlights risks in host-based authentication configurations where trust is improperly maintained across multiple attempts. Although the attack requires high privileges and specific configuration, the ability to bypass authentication for users restricted to specific hosts poses a significant risk to systems relying on AsyncSSH for secure access.

What to watch

Users of AsyncSSH should upgrade to version 2.24.2 or later to mitigate the vulnerability. The release also includes fixes for other security issues, such as SFTP chroot escapes and path traversal in recursive downloads.

Share this article

Want the full story? Read the original reporting

Read on CVEs | Zero Wire | Cloudflare Radar