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
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)
- Debian 13 (trixie)python-asyncssh · not fixed yet
- Debian 12 (bookworm)python-asyncssh · not fixed yet
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)
- CVE-2026-138374Lets attackers add arguments to the proxy program through host or user names and run commands. CVSS 7.7 CVE-2026-138374 advisory 1 · CVE-2026-138374 advisory 2 · CVE-2026-138374 write-up 1 · CVE-2026-138374 write-up 2
- CVE-2026-138377Lets attackers log in as users with certificates issued under CAs they add to trust. CVSS 7.6 CVE-2026-138377 advisory 1 · CVE-2026-138377 advisory 2 · CVE-2026-138377 write-up 1 · CVE-2026-138377 write-up 2
- CVE-2026-138376Lets a client holding one known host's key log in as users allowed only from another host. CVSS 7.4 CVE-2026-138376 advisory 1 · CVE-2026-138376 advisory 2 · CVE-2026-138376 write-up 1 · CVE-2026-138376 write-up 2
Show 1 more
- CVE-2026-138375Lets attackers leak environment variables such as credentials into proxy arguments. CVSS 3.1 CVE-2026-138375 advisory 1 · CVE-2026-138375 advisory 2 · CVE-2026-138375 write-up 1 · CVE-2026-138375 write-up 2