{"id":"CVE-2025-26465","published":"2025-02-18T18:27:16Z","modified":"2026-11-05T15:26:48Z","title":"Openssh: machine-in-the-middle attack if verifyhostkeydns is enabled","vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07723,"percentile":0.94754,"provenance":"source"},"cwes":[{"id":"CWE-390","name":"Detection of Error Condition Without Action"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:16823","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2025:3837","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2025:6993","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2025:8385","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-26465","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/solutions/7109879","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2344780","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://seclists.org/oss-sec/2025/q1/144","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00020.html","tags":[]},{"url":"https://www.openwall.com/lists/oss-security/2025/02/18/1","tags":[]},{"url":"https://www.openwall.com/lists/oss-security/2025/02/18/4","tags":[]},{"url":"https://www.theregister.com/2025/02/18/openssh_vulnerabilities_mitm_dos/","tags":[]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1237040","tags":[]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-26465","tags":[]},{"url":"https://ftp.openbsd.org/pub/OpenBSD/patches/7.6/common/008_ssh.patch.sig","tags":[]},{"url":"https://ubuntu.com/security/CVE-2025-26465","tags":[]},{"url":"https://www.openssh.com/releasenotes.html#9.9p2","tags":[]},{"url":"https://blog.qualys.com/vulnerabilities-threat-research/2025/02/18/qualys-tru-discovers-two-vulnerabilities-in-openssh-cve-2025-26465-cve-2025-26466","tags":[]},{"url":"https://lists.mindrot.org/pipermail/openssh-unix-announce/2025-February/000161.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250228-0003/","tags":[]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2025-26465-detect-vulnerable-openssh","tags":[]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2025-26465-mitigate-vulnerable-openssh","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/May/8","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/May/7","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/Feb/18","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-585531.html","tags":[]}],"priority":{"score":28.7,"factors":[{"name":"EPSS percentile","points":18.95},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.76}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-02-18","earliestUrl":"https://github.com/rxerium/CVE-2025-26465","repos":[{"name":"rxerium/CVE-2025-26465","url":"https://github.com/rxerium/CVE-2025-26465","stars":10,"created":"2025-02-18"},{"name":"dolutech/patch-manual-CVE-2025-26465-e-CVE-2025-26466","url":"https://github.com/dolutech/patch-manual-CVE-2025-26465-e-CVE-2025-26466","stars":1,"created":"2025-02-21"}]},"first":{"date":"2025-02-18","source":"PoC-in-GitHub","url":"https://github.com/rxerium/CVE-2025-26465"},"provenance":"source"},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":[">= 6.8p1, <= 9.9p1"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.4 Extended Update Support","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Discovery 1.14","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","versions":["all versions"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-02-19T15:02:09.369445Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"A flaw in OpenSSH's host key verification logic, which mishandles error codes, affects Red Hat Enterprise Linux 8 when the VerifyHostKeyDNS option is enabled. An attacker with network access who is able to impersonate a legitimate server can carry out a machine-in-the-middle attack, but only if they first exhaust the client's memory, and no authentication is required while user interaction is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:39:52Z"},"euvd":{"id":"EUVD-2025-4686","exploited":false,"provenance":"source"}}