Net-LibSSHに認証を回避される脆弱性、ホスト鍵を検証せず接続
Summary
Perl向けNet::LibSSHの0.004より前のバージョンは、接続時にホスト鍵をknown_hostsと照合しないため、なりすましサーバーに接続してしまいます。パスワード認証を使う場合は、そのパスワードが攻撃者に渡るおそれがあり、深刻度はCVSS 9.1です。修正版の0.004以降に更新してください。
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.
Perl向けNet::LibSSHの0.004より前のバージョンは、接続時にホスト鍵をknown_hostsと照合しないため、なりすましサーバーに接続してしまいます。パスワード認証を使う場合は、そのパスワードが攻撃者に渡るおそれがあり、深刻度はCVSS 9.1です。修正版の0.004以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANNet-LibSSH |
< 0.004→ 0.004 |
0.004 |
Original description The description as published by the source.
Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts.
connect reports success as soon as ssh_connect returns SSH_OK. libssh leaves the known-hosts check to the application, and this binding never makes it, so the strict_hostkeycheck and knownhosts options are set on the session and then decide nothing.
Password, agent and public-key authentication, channel and SFTP operations all run on a session whose peer was never identified, so an attacker who can redirect the connection receives the password when password authentication is used, and commands and data sent over the session.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory metacpan.org
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web openwall.com
- web cpan.org