world

AsyncSSH CVE-2026-144666 Exposes Python SCP Clients to File Overwrites

CVE-2026-144666 in AsyncSSH before 2.24.2 lets malicious SCP servers write unrequested files like .bashrc or authorized_keys on Python clients.

AsyncSSH CVE-2026-144666 Exposes Python SCP Clients to File Overwrites

A newly published vulnerability in Python's AsyncSSH library, tracked as CVE-2026-144666, highlights how fragile legacy file-transfer protocols remain inside modern automation pipelines. Disclosed on December 4, 2026, the flaw allows a malicious SCP server to write unrequested files onto a connecting client—turning a routine download into potential code execution or persistent SSH access.

What Happened

According to the CVE.org record and the National Vulnerability Database (NVD), AsyncSSH versions prior to 2.24.2 contain an arbitrary file write vulnerability (CWE-73: External Control of File Name or Path) in the SCP client implementation. When a Python application downloads a file over SCP, the client fails to verify that filenames returned by the remote server match the requested path.

As a result, an attacker controlling an SCP server can push unrequested files—such as .bashrc or a .ssh directory containing authorized_keys—directly onto the client's filesystem. VulnCheck, acting as the CVE Numbering Authority (CNA), assigned the issue a CVSS 4.0 score of 6.0 (Medium) and a CVSS 3.1 score of 5.3 (Medium), crediting researcher Zachariah Mithani of AploSec.

Key Details and the 2.24.2 Security Cluster

While CVE-2026-144666 was formally published on December 4, 2026, the upstream fix shipped in AsyncSSH 2.24.2 on November 27, 2026. Notably, 2.24.2 is not a single-bug patch—it is a broader security consolidation release:

  • Previous SCP path traversal: Earlier in 2026, AsyncSSH patched CVE-2026-62949 in version 2.23.1, where _parse_cd_args in scp.py accepted ../ traversal sequences verbatim from servers. CVE-2026-144666 shows that blocking ../ alone is insufficient if the server can still dictate arbitrary filenames within the target directory.
  • ProxyCommand argument injection: Just days earlier, CVE-2026-138374 disclosed that versions 2.7.0 through 2.24.1 allowed whitespace or quote injection via %h, %n, and %r tokens into local ssh proxy commands.
  • X.509 and DNS validation fixes: As documented in the Debian Package Tracker and AsyncSSH's changelog, 2.24.2 also resolved improper X.509 certificate chain validation (CVE-2026-138377) and reverse-DNS verification gaps.

Why This Matters Now

AsyncSSH is the de facto asynchronous SSHv2, SFTP, and SCP library for Python 3.10+ asyncio workloads. Unlike interactive terminal sessions where a human watches output, AsyncSSH is heavily embedded in unattended infrastructure: CI/CD runners, deployment orchestrators, backup agents, and multi-tenant cloud tooling.

Because SCP is an aging protocol that lacks strict client-side manifest negotiation—the server effectively tells the client what files it is sending—implementations that trust server-supplied names expose automation hosts whenever they connect to untrusted or compromised endpoints. Even a Medium CVSS score understates operational impact if a compromised build runner holds cloud credentials or signing keys.

Macro and Micro Implications

At the macro level, CVE-2026-144666 reinforces a clear industry shift: OpenSSH and major cloud tooling have spent years deprecating the legacy SCP protocol in favor of SFTP, yet Python and DevOps ecosystems still maintain SCP code paths for backward compatibility. Every new CWE-73 disclosure accelerates pressure on library maintainers to either deprecate SCP by default or enforce strict canonical path matching.

At the micro level, Python developers, DevOps engineers, and security teams should audit requirements.txt, pyproject.toml, and container images for asyncssh < 2.24.2. Upgrading to 2.24.2 resolves CVE-2026-144666 alongside the late-November ProxyCommand and X.509 flaws. Where immediate upgrades are blocked by distro packaging lag, teams should switch automated transfers from SCP to SFTP and run download jobs inside isolated, non-privileged containers without persistent ~/.ssh or shell-startup write access.

Winners and Losers

  • Winners: DevOps teams enforcing automated dependency pinning and SFTP-first transfer policies; Linux distributions such as NetBSD pkgsrc that already packaged 2.24.2.
  • Losers: Organizations running frozen Python automation images on older asyncssh releases (< 2.24.2) that pull artifacts from third-party or customer-controlled SCP hosts.

What to Watch Next

  1. NVD enrichment and EPSS movement: Whether NVD's pending enrichment adjusts CVSS metrics or triggers automated scanner alerts across Python container registries.
  2. Linux distribution advisories: How quickly Debian (trixie), Ubuntu, and Alpine backport the 2.24.2 SCP and ProxyCommand patches into downstream python-asyncssh packages.
  3. Ecosystem deprecation of SCP: Whether popular Python deployment frameworks formally disable SCP downloads in favor of SFTP.

// sources

// WebZona Studio products

Need a product or service that does not exist yet?

Pitch your idea in our "50 Hours" program — every month we build one community idea free for everyone. Or explore our released products.

// comments (0)

// no comments yet.