Skip to main content
Mallory
← Back to News
widely-deployed-product-advisoryinternet-facing-service-vulnerabilityidentity-authentication-vulnerabilityoperational-disruption

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 fixes MITM and pre-authentication DoS flaws in CVE-2025-26465 and CVE-2025-26466

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.
Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Feb 18, 2025 – Feb 20, 2025
  1. Feb 20, 20252y ago

    CSIRT.SK publishes advisory on OpenSSH flaws

    CSIRT.SK published an advisory describing the impact of CVE-2025-26465 and CVE-2025-26466 and recommending upgrades to OpenSSH 9.9p2 or later. The notice also advised disabling VerifyHostKeyDNS unless necessary and enforcing connection limits such as LoginGraceTime and MaxStartups.

    Závažné zraniteľnosti OpenSSH | CSIRT.SK
  2. Feb 18, 20252y ago

    OpenSSH 9.5p1 introduces SSH2_MSG_PING memory exhaustion flaw

    Qualys reported that CVE-2025-26466 was introduced in OpenSSH 9.5p1 via support for the SSH2_MSG_PING packet, enabling a pre-authentication denial-of-service condition through asymmetric resource consumption and memory exhaustion.

    Qualys TRU Discovers Two Vulnerabilities in OpenSSH: CVE-2025-26465 & CVE-2025-26466 | Qualys
  3. Feb 18, 20252y ago

    OpenSSH 6.8p1 introduces VerifyHostKeyDNS default client behavior

    Qualys reported that CVE-2025-26465 was introduced in OpenSSH 6.8p1 when a code change caused the client to accept a server key if the VerifyHostKeyDNS option was enabled, exposing affected clients to machine-in-the-middle attacks.

    Qualys TRU Discovers Two Vulnerabilities in OpenSSH: CVE-2025-26465 & CVE-2025-26466 | Qualys
  4. Feb 18, 20252y ago

    OpenSSH releases fixes in version 9.9p2

    OpenSSH developers released version 9.9p2 to fix CVE-2025-26465 and CVE-2025-26466. The update addressed the VerifyHostKeyDNS-related host verification issue and the SSH2_MSG_PING memory exhaustion flaw.

    OpenSSH: Release Notes
  5. Feb 18, 20252y ago

    Qualys discovers and reports two OpenSSH vulnerabilities

    Qualys Threat Research Unit discovered CVE-2025-26465 and CVE-2025-26466 in OpenSSH and coordinated disclosure with the OpenSSH developers. The flaws enabled a machine-in-the-middle attack in certain client configurations and a pre-authentication denial-of-service attack against servers.

    Qualys TRU Discovers Two Vulnerabilities in OpenSSH: CVE-2025-26465 & CVE-2025-26466 | Qualys
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.