CPANSA-Net-LibSSH-2026-94423: Net-LibSSH vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-10-21T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-10-21T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | Severity | ||
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2026-94423
Vulnerability DescriptionNet::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.
| Weakness | CWE-322 : Key Exchange without Entity Authentication |
|---|
Product status
Known affected
| Product | Score | ||||
|---|---|---|---|---|---|
| Net-LibSSH less than 0.004 |
|
Fixed
- Net-LibSSH greater than or equal 0.004
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Net-LibSSH-2026-94423 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-net-libssh-2026-94423.json - https://github.com/Getty/p5-net-libssh/commit/29f509aacddb4b282ac9eb716d5ab326686d09a4.patch external
https://github.com/Getty/p5-net-libssh/commit/29f509aacddb4b282ac9eb716d5ab326686d09a4.patch - https://metacpan.org/release/GETTY/Net-LibSSH-0.004/changes external
https://metacpan.org/release/GETTY/Net-LibSSH-0.004/changes - http://www.openwall.com/lists/oss-security/2026/10/21/29 external
http://www.openwall.com/lists/oss-security/2026/10/21/29 - CVE-2026-94423 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-94423
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Wed Oct 21 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/