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.
Metrics
Affected Vendors & Products
References
History
Fri, 30 Oct 2026 18:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
Thu, 22 Oct 2026 11:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Getty
Getty net::libssh |
|
| Vendors & Products |
Getty
Getty net::libssh |
Thu, 22 Oct 2026 01:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
Wed, 21 Oct 2026 21:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts | |
| Weaknesses | CWE-322 | |
| References |
|
Status: PUBLISHED
Assigner: CPANSec
Published: 2026-10-21T21:22:48.593Z
Updated: 2026-10-30T17:22:58.601Z
Reserved: 2026-09-21T15:32:37.782Z
Link: CVE-2026-94423
Updated: 2026-10-22T00:16:44.795Z
Status : Awaiting Analysis
Published: 2026-10-21T22:16:50.480
Modified: 2026-10-30T18:18:20.440
Link: CVE-2026-94423
No data.