CVE-2025-26465
Medium 6.8No known exploitationFix availableOpenssh: machine-in-the-middle attack if verifyhostkeydns is enabled
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 96% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-390
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- This 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 configurations that require VerifyHostKeyDNS to be enabled (set to either 'yes' or 'ask'), mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Source (opens in a new tab)
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Red Hat | Red Hat OpenShift Container Platform 4 | Not documented | Not documented | CVE Program |
| debian | debian_linux | 11.0 | Not documented | NIST NVD |
| debian | debian_linux | 12.0 | Not documented | NIST NVD |
| netapp | active_iq_unified_manager | Not documented | Not documented | NIST NVD |
| netapp | ontap | 9 | Not documented | NIST NVD |
| openbsd | openssh | from 6.9 up to and including 9.8 | Not documented | NIST NVD |
| openbsd | openssh | 6.8 | Not documented | NIST NVD |
| openbsd | openssh | 9.9 | Not documented | NIST NVD |
| openbsd | openssh | 9.9 | Not documented | NIST NVD |
| redhat | enterprise_linux | 9.0 | Not documented | NIST NVD |
| redhat | openshift_container_platform | 4.0 | Not documented | NIST NVD |
| Red Hat | Red Hat Discovery 1.14 (unaffected) | 1.14.3-1748529279 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 10 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 6 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 7 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (unaffected) | 0:8.0p1-26.el8_10 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (unaffected) | 0:8.0p1-26.el8_10 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:8.7p1-45.el9 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:8.7p1-45.el9 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support (unaffected) | 0:8.7p1-38.el9_4.5 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- RHSA-2025:16823 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2025:3837 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2025:6993 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2025:8385 (opens in a new tab)vendor-advisory, x_refsource_redhat
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.6/common/008_ssh.patch.sig (opens in a new tab)patch
- https://www.vicarius.io/vsociety/posts/cve-2025-26465-mitigate-vulnerable-openssh (opens in a new tab)mitigation, third party advisory
- http://seclists.org/fulldisclosure/2025/Feb/18 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/7 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/8 (opens in a new tab)
- https://access.redhat.com/security/cve/CVE-2025-26465 (opens in a new tab)third party advisory, vdb-entry, x_refsource_redhat
- https://access.redhat.com/solutions/7109879 (opens in a new tab)
- https://blog.qualys.com/vulnerabilities-threat-research/2025/02/18/qualys-tru-discovers-two-vulnerabilities-in-openssh-cve-2025-26465-cve-2025-26466 (opens in a new tab)third party advisory
- RHBZ#2344780 (opens in a new tab)issue tracking, issue-tracking, third party advisory, x_refsource_redhat
- https://bugzilla.suse.com/show_bug.cgi?id=1237040 (opens in a new tab)issue tracking
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-585531.html (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/02/msg00020.html (opens in a new tab)third party advisory
- https://lists.mindrot.org/pipermail/openssh-unix-announce/2025-February/000161.html (opens in a new tab)third party advisory
- https://seclists.org/oss-sec/2025/q1/144 (opens in a new tab)mailing list, third party advisory
- https://security-tracker.debian.org/tracker/CVE-2025-26465 (opens in a new tab)third party advisory
- https://security.netapp.com/advisory/ntap-20250228-0003/ (opens in a new tab)third party advisory
- https://ubuntu.com/security/CVE-2025-26465 (opens in a new tab)third party advisory
- https://www.openssh.com/releasenotes.html (opens in a new tab)release notes
- https://www.openwall.com/lists/oss-security/2025/02/18/1 (opens in a new tab)mailing list, third party advisory
- https://www.openwall.com/lists/oss-security/2025/02/18/4 (opens in a new tab)mailing list, third party advisory
- https://www.theregister.com/2025/02/18/openssh_vulnerabilities_mitm_dos/ (opens in a new tab)press/media coverage
- https://www.vicarius.io/vsociety/posts/cve-2025-26465-detect-vulnerable-openssh (opens in a new tab)third party advisory