Intel

AIKIDO-2026-254626

net-ssh is vulnerable to Authentication Bypass

GHSA-vxj5-fg65-x765Published Oct 6, 2026
October 6, 2026

81

CVE Score

High

Authentication Bypass

Are you affected? Scan for Free

TL;DR

Net::SSH::HostKeyEntries::CertAuthority#matches_key? accepts any server certificate signed by a trusted @cert-authority key, checking only the signature and that the signing key matches the stored CA key. It never checks valid_principals against the connecting host, the certificate validity window, the certificate type, or critical_options. A certificate issued for a different host, an expired certificate, or even a user certificate from the same CA authenticates the server, letting that certificate's holder impersonate any host trusting the CA and capture the resulting session. The fix checks the principal, validity, type, and critical options and raises HostKeyMismatch so permissive verifiers can no longer accept or cache a rejected certificate.

How do I fix this?

Upgrade the net-ssh library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you trust SSH host certificates through @cert-authority entries in known_hosts.

Package

Versions

6.3.0 - 7.3.3

Fixed in 7.3.4

Background info

net-ssh is vulnerable to Authentication Bypass in versions 6.3.0 - 7.3.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea