{"id":"CVE-2026-94423","title":"Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts","summary":"Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts.\n\nconnect reports success as soon as ssh_connect returns SSH_OK. libssh leaves the known-hosts …","severity":"none","cwe":["CWE-322"],"product":"Net-LibSSH","affected":["Net-LibSSH < 0.004"],"published":"2026-10-21","updated":"2026-10-22","sourceUpdated":"2026-10-22T00:16:44.795Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-94423","references":[{"url":"https://metacpan.org/release/GETTY/Net-LibSSH-0.004/changes"},{"url":"https://github.com/Getty/p5-net-libssh/commit/29f509aacddb4b282ac9eb716d5ab326686d09a4.patch"}],"tags":["cve.org"],"ingestedAt":"2026-10-21T22:18:33.751Z","slug":"CVE-2026-94423","body":"## Overview\n\nNet::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts.\n\nconnect 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.\n\nPassword, 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.\n\n## Affected\n\n- `Net-LibSSH < 0.004`\n\n## Remediation\n\nUpgrade to Net-LibSSH 0.004 or later.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}