CVE-2025-26465Openssh: machine-in-the-middle attack if verifyhostkeydns is enabled
- 6.8MediumCVSS base score
- 7.7%Exploitation in 30 daysEPSS · top 5.3% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
Timeline
ID reserved
By redhat
- 8 days later
· 8 days later
Published
- 21 months later
· 21 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 7.7% · top 5.3% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.8.
Affected products
OpenSSH
- affected 6.8p1 – ≤ 9.9p1
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:8.0p1-26.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:8.0p1-26.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:8.7p1-45.el9 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:8.7p1-45.el9 – < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Support
- unaffected 0:8.7p1-38.el9_4.5 – < *
Red Hat · Red Hat Discovery 1.14
- unaffected 1.14.3-1748529279 – < *
Red Hat · Red Hat Enterprise Linux 10
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: unknown
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
What to do
Workaround: 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.
References
References27
- RHSA-2025:16823 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3837 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:6993 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:8385 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-26465 (opens in a new tab)vdb-entryx_refsource_REDHAT
- https://access.redhat.com/solutions/7109879 (opens in a new tab)
- RHBZ#2344780 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://seclists.org/oss-sec/2025/q1/144 (opens in a new tab)exploit
- https://lists.debian.org/debian-lts-announce/2025/02/msg00020.html (opens in a new tab)
- https://www.openwall.com/lists/oss-security/2025/02/18/1 (opens in a new tab)
- https://www.openwall.com/lists/oss-security/2025/02/18/4 (opens in a new tab)
- https://www.theregister.com/2025/02/18/openssh_vulnerabilities_mitm_dos/ (opens in a new tab)
- https://bugzilla.suse.com/show_bug.cgi?id=1237040 (opens in a new tab)
- https://security-tracker.debian.org/tracker/CVE-2025-26465 (opens in a new tab)
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.6/common/008_ssh.patch.sig (opens in a new tab)
- https://ubuntu.com/security/CVE-2025-26465 (opens in a new tab)
- https://www.openssh.com/releasenotes.html#9.9p2 (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)
- https://lists.mindrot.org/pipermail/openssh-unix-announce/2025-February/000161.html (opens in a new tab)
- https://security.netapp.com/advisory/ntap-20250228-0003/ (opens in a new tab)
- https://www.vicarius.io/vsociety/posts/cve-2025-26465-detect-vulnerable-openssh (opens in a new tab)
- https://www.vicarius.io/vsociety/posts/cve-2025-26465-mitigate-vulnerable-openssh (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/8 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/May/7 (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/Feb/18 (opens in a new tab)
- 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)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-4686 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-26465)Record last updated .