Skip to main content
Public proof of conceptFix available

CVE-2025-26465

Openssh: machine-in-the-middle attack if verifyhostkeydns is enabled

A public proof of concept exists; no exploitation attested.

  • Published2025-02-18
  • WeaknessCWE-390

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. A machine-in-the-middle attack can be performed by a malicious machine impersonating a legit server. This issue occurs due to how OpenSSH mishandles error codes in specific conditions when verifying the host key. For an attack to be considered successful, the attacker needs to manage to exhaust the client's memory resource first, turning the attack complexity high.

Timeline

dates in UTC
  1. 2025-02-1818:27CVE publishedCNA
  2. 2025-02-1819:15CVE publishedNVD
  3. 2026-11-2510:19EPSS crossed 10 %FIRST EPSS

Versions per branch

NVD
OpenSSH
BranchAffectedFixed in
9.8≥ 6.9, ≤ 9.8no fix published
6.8= 6.8no fix published
9.9= 9.9no fix published
Debian debian linux
BranchAffectedFixed in
11.0= 11.0no fix published
12.0= 12.0no fix published
Netapp active iq unified manager
BranchAffectedFixed in
—all versionsno fix published

3 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA9 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

3 more products in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • opensshUbuntu:Pro:FIPS:20.04:LTSall versions · no fixed version listed
  • opensshUbuntu:Pro:FIPS:18.04:LTSall versions · no fixed version listed
  • opensshUbuntu:Pro:FIPS:16.04:LTSall versions · no fixed version listed
  • opensshUbuntu:Pro:FIPS-updates:24.04:LTSall versions · fixed in 1:9.6p1-3ubuntu13.12+Fips1
  • opensshUbuntu:Pro:FIPS-updates:22.04:LTSall versions · fixed in 1:8.9p1-3ubuntu0.11+Fips1
  • opensshUbuntu:Pro:FIPS-updates:20.04:LTSall versions · fixed in 1:8.2p1-4ubuntu0.fips.0.12
  • opensshUbuntu:Pro:FIPS-updates:18.04:LTSall versions · fixed in 1:7.9p1-10~ubuntu18.04.fips.0.10
  • opensshUbuntu:Pro:FIPS-updates:16.04:LTSall versions · fixed in 1:7.2p2-4ubuntu2.fips.2.10.7

100 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-26465 Red Hat Product Security285 products fixed · 18 known affected

    openssh: Machine-in-the-middle attack if VerifyHostKeyDNS is enabled

    openssh as a component of Red Hat Enterprise Linux 6 · openssh-askpass as a component of Red Hat Enterprise Linux 6 · openssh-clients as a component of Red Hat Enterprise Linux 6 · +15 more

  • ICSA-26-202-04 CISA1 known affected

    Siemens SIDIS Secured SmartPlug

    SIDIS Secured SmartPlug < V7.26.0310

  • SSA-585531 Siemens ProductCERT1 known affected

    SSA-585531: Multiple Vulnerabilities in SIDIS Secured SmartPlug before V7.26.0310

    SIDIS Secured SmartPlug < V7.26.0310

  • RHSA-2025:16823 Red Hat Product Security105 products fixed

    Red Hat Security Advisory: openssh security update

  • ICSA-25-162-05 CISA5 known affected

    Siemens SIMATIC S7-1500 CPU family

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more

  • SSA-082556 Siemens ProductCERT5 known affected

    SSA-082556: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.5 · +2 more

3 more advisories

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-26-202-04 · 1 productUpdate to V7.26.0310 or later version
  2. Vendor fix Siemens ProductCERT SSA-585531 · 1 productUpdate to V7.26.0310 or later version
  3. Vendor fix Red Hat Product Security RHSA-2025:16823 · 105 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2025:8385 · 2 productsThe containers required to run Discovery can be installed through discovery-installer RPM. See the official documentation for more details.
  5. Workaround from the vendor Red Hat Product Security RHSA-2025:16823 · 105 productsThis issue can be mitigated by disabling VerifyHostKeyDNS by setting that option to 'no' in an SSH client configuration file (such as /etc/ssh/ssh_config, ~/.ssh/config, or one of the files in the /etc/ssh/ssh_config.d/ directory). This is the default configuration in Red Hat Enterprise Linux. For…
  6. Mitigation from the vendor Siemens ProductCERT SSA-082556 · 5 productsLimit access to the interactive shell of the additional GNU/Linux subssytem to trusted personnel only.

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Published
2025-02-18
Last modified
2026-11-24
NVD status
Modified
GitHub advisory
GHSA-jrwv-mv4h-7rrq

Frequently asked questions

What is CVE-2025-26465?

A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. A machine-in-the-middle attack can be performed by a malicious machine impersonating a legit server. This issue occurs due to how OpenSSH mishandles error codes in specific conditions when verifying the host key. For an attack to be considered successful, the attacker needs to manage to exhaust the client's memory resource first, turning the attack complexity high.

Is CVE-2025-26465 actively exploited?

A proof-of-concept exploit exists for CVE-2025-26465, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-26465?

CVE-2025-26465 has a CVSS v3 base score of 6.8 (Medium severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N.

Running OpenSSH? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record