CVE-2026-94423
Missing host key verification in Net::LibSSH for Perl
Critical 9.1 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 21, 2026
- Updated
- Oct 30, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-322
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
Net::LibSSH versions before 0.004 fail to verify the remote server's host key against known_hosts during SSH connection. An attacker who can redirect the connection can intercept authentication credentials and session data without detection.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 0.004
Update Net::LibSSH to version 0.004 or later to enable host key verification.
- Check whether you run any of the affected products and follow the vendor advisory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Official sources
References
Links published by the sources. Open them with care.