Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
MediumPublic exploit

OpenSSH VerifyHostKeyDNS Machine-in-the-Middle Host Verification Bypass

IdentifiersCVE-2025-26465CWE-703

CVE-2025-26465 is an OpenSSH client-side host verification vulnerability affecting OpenSSH versions 6.8p1 through 9.9p1 when the VerifyHostKeyDNS option is enabled. The flaw is caused by incorrect handling of error codes during host key verification, which can allow an on-path attacker to impersonate a legitimate SSH server under specific conditions. Multiple sources in the provided content describe this as a logic error in ssh(1) that permits a malicious intermediary to bypass expected host authenticity checks and complete a machine-in-the-middle attack. The content also notes that successful exploitation requires the attacker to first exhaust the client’s memory resources, which raises attack complexity.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an active machine-in-the-middle attacker to impersonate the target SSH server to a vulnerable OpenSSH client. As described in the provided content, this can enable interception of SSH sessions, theft of credentials, command injection into the session, and exfiltration of data transmitted over the compromised connection. The issue affects trust in server identity rather than directly yielding code execution on the client or server.

Mitigation

If you can’t patch tonight, do this now.

Disable the VerifyHostKeyDNS option in SSH client configuration if it is not strictly required. The provided advisories also recommend relying on standard trust-on-first-use behavior or SSH certificate-based host keys instead of DNS-based host key verification. Limiting exposure to hostile networks and ensuring robust host key pinning practices reduce practical exploitability until patches are applied.

Remediation

Patch, then assume compromise.

Upgrade OpenSSH to a fixed release. The provided content states that updating to OpenSSH 9.9p2 addresses CVE-2025-26465. Vendor-specific patched packages were also referenced, including AlmaLinux 8 openssh-8.0p1-25.el8_10.alma.1 and AlmaLinux 9 openssh-8.7p1-43.el9.alma.1, and FreeBSD security updates on supported branches. Apply the relevant vendor patch or package update and restart affected SSH services where required by the platform guidance.
PUBLIC EXPLOITS

Exploits

No valid public exploits. Mallory filtered out 2 candidates as fakes, detection scripts, or README-only repos.

VALID 0 / 2 TOTALView more in app

All candidate exploits were filtered out by Mallory's validation.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
DebianDebian Linuxoperating_system
NetAppActive Iq Unified Managerapplication
NetAppOntapapplication
OpenbsdOpensshapplication
Red HatEnterprise Linuxoperating_system
Red HatOpenshift Container Platformapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity7

Community discussion across Reddit, Mastodon, and other social sources.