OpenSSH fixes MITM and pre-authentication DoS flaws in CVE-2025-26465 and CVE-2025-26466
Patch & Detection Intelligence · 3 sources · Updated 4mo ago · First seen Feb 20, 2025

OpenSSH released security updates to address two vulnerabilities tracked as CVE-2025-26465 and CVE-2025-26466, with downstream advisories warning that affected deployments could face both server impersonation and service disruption. According to vendor and researcher disclosures, CVE-2025-26465 can enable a man-in-the-middle attack when VerifyHostKeyDNS is enabled, allowing an attacker to bypass host verification, present a crafted key, impersonate a trusted SSH server, and potentially intercept sessions, access sensitive data, or execute commands.
The second issue, CVE-2025-26466, is a pre-authentication denial-of-service flaw caused by unbounded memory allocation triggered through SSH2_MSG_PING messages, which can exhaust memory and disrupt SSH availability. Guidance from OpenSSH and national CSIRT reporting urges organizations to upgrade to OpenSSH 9.9p2 or later, disable VerifyHostKeyDNS unless it is strictly required, and harden exposed services with connection controls such as LoginGraceTime, MaxStartups, and PerSourcePenalties to reduce exploitation risk.
Why it matters
Impact assessment
OpenSSH clients and servers are affected, with the highest risk to environments that use SSH broadly for administration, automation, and remote access across enterprise IT, cloud, telecom, hosting, and managed services. CVE-2025-26465 creates confidentiality and integrity risk by enabling SSH server impersonation and session interception when VerifyHostKeyDNS is enabled, while CVE-2025-26466 creates availability risk through pre-authentication memory exhaustion against exposed SSH services.
The exposure is potentially widespread because OpenSSH is broadly deployed, but exploitation conditions differ by flaw: the MITM issue is configuration-dependent and affects clients with VerifyHostKeyDNS set to yes or ask, whereas the DoS issue can be triggered pre-authentication against vulnerable servers. The provided references describe exploitability and impact but do not cite confirmed in-the-wild exploitation.
Supporting facts
- Affected product: OpenSSH.
- Fixed version recommended by the references: OpenSSH 9.9p2 or later.
- CVE-2025-26465 impact: server impersonation, host verification bypass, sensitive data exposure, possible command execution, and SSH session takeover.
- CVE-2025-26466 impact: resource exhaustion and SSH service disruption.
- User populations at risk: administrators, automation platforms, CI/CD systems, and any users or services relying on SSH trust validation or exposed SSH daemons.
- Scope:
- CVE-2025-26465 is targeted by nature because it requires interception of SSH communication and affected client configuration.
- CVE-2025-26466 is broader for internet-exposed or otherwise reachable SSH services because it is pre-authentication.


