AsyncSSH ProxyCommand argument injection allows command execution
CVE-2026-138374 ほか3件
Programs using this Python remote-login part can be hacked.
- CVE
- CVE-2026-138374 ほか3件
- スコア
- CVSS 7.7 · CVE-2026-138374
- 公開日
- 2026-11-27
- 初確認
対処法
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.
要約
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.
攻撃コード公開済み
該当する条件
- 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
製品別のインシデント: AsyncSSH
AsyncSSH のほかの最近のインシデント
ディストリビューション別パッケージ (2)(下のリンクはすべて新しいタブで開きます)
- Debian 13 (trixie)python-asyncssh · 未修正
- Debian 12 (bookworm)python-asyncssh · 未修正
CVE 4件(下のリンクはすべて新しいタブで開きます)
勧告を読む · github.com(新しいタブで開きます)
CVE 4件それぞれの内容(下のリンクはすべて新しいタブで開きます)
- CVE-2026-138374Lets attackers add arguments to the proxy program through host or user names and run commands. CVSS 7.7 CVE-2026-138374 勧告 1 · CVE-2026-138374 勧告 2 · CVE-2026-138374 解説 1 · CVE-2026-138374 解説 2
- CVE-2026-138377Lets attackers log in as users with certificates issued under CAs they add to trust. CVSS 7.6 CVE-2026-138377 勧告 1 · CVE-2026-138377 勧告 2 · CVE-2026-138377 解説 1 · CVE-2026-138377 解説 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 勧告 1 · CVE-2026-138376 勧告 2 · CVE-2026-138376 解説 1 · CVE-2026-138376 解説 2
あと1件を表示
- CVE-2026-138375Lets attackers leak environment variables such as credentials into proxy arguments. CVSS 3.1 CVE-2026-138375 勧告 1 · CVE-2026-138375 勧告 2 · CVE-2026-138375 解説 1 · CVE-2026-138375 解説 2