Advisories · Linux & SSH
CVE-2025-26465
Medium
CVSS 6.8
OpenSSH VerifyHostKeyDNS impersonation
Disclosed 2025 · Last reviewed 2 Dec 2026
With VerifyHostKeyDNS turned on, an on-path attacker could impersonate the server the client was trying to reach.
What happened
A logic error in the DNS host-key check let a failed lookup look like a match.
Affected and patched versions
- Affected
- OpenSSH clients 6.8p1 through 9.9p1 when VerifyHostKeyDNS is enabled. The option is off by default.
- Patched
- OpenSSH 9.9p2 and later.
How to check your server
Check
ssh -V
How to fix and harden
- Run ssh -V.
- Upgrade the OpenSSH client to 9.9p2 or later.
- Leave VerifyHostKeyDNS off unless you have a reason to use it and the client is patched.
Fix
ssh -V
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON