# CVE-2025-26465: Openssh: machine-in-the-middle attack if verifyhostkeydns is enabled

- Severity: Medium 6.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.24%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-02-18T18:27:16.843Z
- Modified: 2026-11-24T09:17:04.903Z
- Weaknesses: CWE-390
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- OpenSSH: from 6.8p1 up to 9.9p1 (not affected: from 0:8.0p1-26.el8_10 before *; from 0:8.7p1-45.el9 before *; from 0:8.7p1-38.el9_4.5 before *)
- discovery/discovery-server-rhel9: no versions given (not affected: from 1.14.3-1748529279 before *)
- openshift/ose-rhel-coreos-9: no versions given
- openbsd openssh: from 6.9 up to 9.8; 6.8; 9.9
- netapp active_iq_unified_manager: no versions given
- netapp ontap: 9
- redhat openshift_container_platform: 4.0
- debian debian_linux: 11.0; 12.0
- redhat enterprise_linux: 9.0

## Every score

- redhat: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://seclists.org/oss-sec/2025/q1/144> (exploit, mailing-list, third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2025:16823> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3837> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:6993> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:8385> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-26465> (third-party-advisory, vdb-entry)
- <https://access.redhat.com/solutions/7109879>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2344780> (issue-tracking, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00020.html> (third-party-advisory)
- <https://www.openwall.com/lists/oss-security/2025/02/18/1> (mailing-list, third-party-advisory)
- <https://www.openwall.com/lists/oss-security/2025/02/18/4> (mailing-list, third-party-advisory)
- <https://www.theregister.com/2025/02/18/openssh_vulnerabilities_mitm_dos/> (press/media-coverage)
- <https://bugzilla.suse.com/show_bug.cgi?id=1237040> (issue-tracking)
- <https://security-tracker.debian.org/tracker/CVE-2025-26465> (third-party-advisory)
- <https://ftp.openbsd.org/pub/OpenBSD/patches/7.6/common/008_ssh.patch.sig> (patch)
- <https://ubuntu.com/security/CVE-2025-26465> (third-party-advisory)
- <https://www.openssh.com/releasenotes.html#9.9p2> (release-notes)
- <https://blog.qualys.com/vulnerabilities-threat-research/2025/02/18/qualys-tru-discovers-two-vulnerabilities-in-openssh-cve-2025-26465-cve-2025-26466> (third-party-advisory)
- <https://lists.mindrot.org/pipermail/openssh-unix-announce/2025-February/000161.html> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20250228-0003/> (third-party-advisory)
- <https://www.vicarius.io/vsociety/posts/cve-2025-26465-detect-vulnerable-openssh> (third-party-advisory)
- <https://www.vicarius.io/vsociety/posts/cve-2025-26465-mitigate-vulnerable-openssh> (mitigation, third-party-advisory)
- <http://seclists.org/fulldisclosure/2025/May/8>
- <http://seclists.org/fulldisclosure/2025/May/7>
- <http://seclists.org/fulldisclosure/2025/Feb/18>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-585531.html>

## Sources

- CVE List: [CVE-2025-26465](https://www.cve.org/CVERecord?id=CVE-2025-26465), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2025-26465](https://nvd.nist.gov/vuln/detail/CVE-2025-26465), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2025-26465 · Whole record: https://cve.day/CVE-2025-26465.json · Rebuilt by cve.day 2026-11-25T22:58:54.159Z
