Skip to content
Heist/ feed
Back to feed
Critical

Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-94423
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:34 UTC · Revision 1

Source evidence

Net::LibSSH versions before 0.004 for Perl authenticate to an unverified server because connect never checks the host key against known_hosts

core-osv · Original source

Published 21 Oct 2026, 21:22 UTC

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.

osv:CVE-2026-94423
Complete source record
{
  "id": "f2190eeb363503befc3134be71c434fd6b5f29a26599133e36428961356a5b3f",
  "url": "https://osv.dev/vulnerability/CVE-2026-94423",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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. 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.",
    "evidence": "osv:CVE-2026-94423",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-94423",
      "aliases": [
        "CVE-2026-94423"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/getty/p5-net-libssh",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3ce362aee769d3cb2375152e8c0b106295c58b03"
                },
                {
                  "fixed": "29f509aacddb4b282ac9eb716d5ab326686d09a4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.004"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "29f509aacddb4b282ac9eb716d5ab326686d09a4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.003",
            "0.002",
            "0.001"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-94423.json"
          }
        }
      ],
      "modified": "2026-11-01T02:31:02.318570868Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/94xxx/CVE-2026-94423.json",
        "https://metacpan.org/release/GETTY/Net-LibSSH-0.004/changes",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-94423",
        "https://github.com/Getty/p5-net-libssh/commit/29f509aacddb4b282ac9eb716d5ab326686d09a4.patch",
        "https://github.com/Getty/p5-net-libssh"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-322"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/94xxx/CVE-2026-94423.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-94423",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509133,
  "published_at": "2026-10-21T21:22:48.593+00:00"
}