AsyncSSHのProxyCommandでコマンドを実行される脆弱性
Summary
AsyncSSH 2.7.0から2.24.2より前の版に、ホスト名やユーザー名に空白や引用符を埋め込まれると、ProxyCommandの引数に任意のオプションを追加され、アプリケーションの実行ユーザー権限でコマンドを実行される脆弱性があります。修正版の2.24.2へ更新してください。ssh -W %h:%pを使う踏み台経由の接続では特に注意が必要です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
AsyncSSH 2.7.0から2.24.2より前の版に、ホスト名やユーザー名に空白や引用符を埋め込まれると、ProxyCommandの引数に任意のオプションを追加され、アプリケーションの実行ユーザー権限でコマンドを実行される脆弱性があります。修正版の2.24.2へ更新してください。ssh -W %h:%pを使う踏み台経由の接続では特に注意が必要です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| ronfAsyncSSH |
≥ 2.7.0, < 2.24.2→ 2.24.2 |
2.24.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-138374 python-asyncssh No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-138374 python-asyncssh No fixed version in this record
Original description The description as published by the source.
AsyncSSH 2.7.0 before 2.24.2 contains an argument injection vulnerability that allows attackers supplying host or user names to add arguments to the local proxy program by embedding whitespace or quote characters substituted into %h, %n or %r ProxyCommand tokens before splitting. Attackers can inject an -o option into the common ssh -W %h:%p bastion ProxyCommand to make the local ssh client run attacker-chosen commands as the application user.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com