{"id":"CVE-2026-94423","state":"PUBLISHED","title":"Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts","description":"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 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.","publishedAt":"2026-10-21T21:22:48.593Z","updatedAt":"2026-10-30T17:22:58.601Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["Net-LibSSH"],"affected":[{"packageName":"Net-LibSSH","packageURL":"pkg:cpan/Net-LibSSH","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.004","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Net::LibSSH"],"programFiles":["LibSSH.xs"],"programRoutines":[{"name":"Net::LibSSH::connect"}],"repo":"https://github.com/Getty/p5-net-libssh"}],"references":["https://metacpan.org/release/GETTY/Net-LibSSH-0.004/changes","https://github.com/Getty/p5-net-libssh/commit/29f509aacddb4b282ac9eb716d5ab326686d09a4.patch","http://www.openwall.com/lists/oss-security/2026/10/21/29"],"weaknesses":["CWE-322"],"ingestedAt":"2026-10-30T17:36:04.316Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/94xxx/CVE-2026-94423.json","commit":"3341b8c15da9d44519feb86e18f02f360209d08a","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-94423","state":"PUBLISHED","datePublished":"2026-10-21T21:22:48.593Z","dateUpdated":"2026-10-30T17:22:58.601Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-09-21T15:32:37.782Z"},"containers":{"cna":{"title":"Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts","descriptions":[{"lang":"en","value":"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 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."}],"affected":[{"packageName":"Net-LibSSH","packageURL":"pkg:cpan/Net-LibSSH","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.004","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["Net::LibSSH"],"programFiles":["LibSSH.xs"],"programRoutines":[{"name":"Net::LibSSH::connect"}],"repo":"https://github.com/Getty/p5-net-libssh"}],"references":[{"url":"https://metacpan.org/release/GETTY/Net-LibSSH-0.004/changes","tags":["release-notes"]},{"url":"https://github.com/Getty/p5-net-libssh/commit/29f509aacddb4b282ac9eb716d5ab326686d09a4.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-322","description":"CWE-322 Key Exchange without Entity Authentication","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-10-21T21:22:48.593Z"},"credits":[{"lang":"en","type":"finder","value":"James Klein"}],"solutions":[{"lang":"en","value":"Upgrade to Net-LibSSH 0.004 or later."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/10/21/29"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-10-22T00:16:44.795Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-10-30T17:22:18.468311Z","id":"CVE-2026-94423","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-30T17:22:58.601Z"}}]}}}