Patch Ticker
EnglishEN
Elevated

AsyncSSH ProxyCommand argument injection allows command execution

CVE-2026-138374 and 3 more

Programs using this Python remote-login part can be hacked.

CVE
CVE-2026-138374 and 3 more
Score
CVSS 7.7 · CVE-2026-138374
Public date
2026-11-27
First seen
7.7
Products
Disclosed together AsyncSSH

Mitigation

Update to AsyncSSH 2.24.2 or later. Until then, for CVE-2026-138374 and CVE-2026-138375, validate host and user names from untrusted sources and do not use %h, %n or %r in ProxyCommand. For CVE-2026-138376, leave trust_client_host disabled. For CVE-2026-138377, do not list X.509 certificates in known_client_hosts. These stopgaps do not replace the update.

Summary

config.py ProxyCommand token substitution lets host or user names with added whitespace or quotes add arguments to the local proxy program, so an attacker can make the local ssh client run commands. Versions before 2.24.2 are affected. The same release also fixes certificate validation and host-based authentication flaws, and an environment variable leak.

Exploit code is public

Affected when

  • CVE-2026-138374, CVE-2026-138375 ~/.ssh/config has a ProxyCommand using %h, %n or %r
  • CVE-2026-138374, CVE-2026-138375 the application passes unvalidated host or user names to connect()
  • CVE-2026-138374 AsyncSSH 2.7.0 or later, before 2.24.2
  • CVE-2026-138375 AsyncSSH 2.20.0 or later, before 2.24.2
  • CVE-2026-138376 trust_client_host is enabled
  • CVE-2026-138376 validate_host_based_user() decides using client_host
  • CVE-2026-138377 X.509 certificates are listed in known_client_hosts
  • CVE-2026-138377 authorized_keys accepts X.509 user certificates by subject name

3 other Incidents of this product in the last 30 days

Incidents by product: AsyncSSH

Other recent Incidents of AsyncSSH

Distribution packages (2) (every link below opens in a new tab)

Sources: Debian Security Tracker

4 CVEs (every link below opens in a new tab)

Read the advisory · github.com (opens in a new tab)

Each of the 4 CVEs (every link below opens in a new tab)

Show 1 more