CVE-2025-26465
Openssh: machine-in-the-middle attack if verifyhostkeydns is enabled
Check your servers for CVE-2025-26465
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-26465 affects openssh, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 4.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 91.9% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 19 Feb 2025):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-390 Detection of Error Condition Without Action
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
OpenSSH
package
OpenSSH |
affected from 6.8p1 up to and including 9.9p1
Other versions: unaffected
|
|
Red Hat Enterprise Linux 8
package
openssh |
unaffected 0:8.0p1-26.el8_10 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 8
package
openssh |
unaffected 0:8.0p1-26.el8_10 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
openssh |
unaffected 0:8.7p1-45.el9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
openssh |
unaffected 0:8.7p1-45.el9 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.4 Extended Update Support
package
openssh |
unaffected 0:8.7p1-38.el9_4.5 and later
Other versions: affected
|
|
Red Hat Discovery 1.14
package
discovery/discovery-server-rhel9 |
unaffected 1.14.3-1748529279 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 10
package
openssh |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 6
package
openssh |
unknown the record does not list versions
|
|
Red Hat Enterprise Linux 7
package
openssh |
unknown the record does not list versions
|
|
Red Hat OpenShift Container Platform 4
package
openshift/ose-rhel-coreos-9 |
affected the record does not list versions
|
Is my server affected?
Find the installed version of openssh and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i openssh
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-26465 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-26465RHEL, Rocky, Alma, Fedora
rpm -q openssh
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-26465Alpine
apk list --installed | grep -i opensshWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-26465
trivy image --scanners vuln IMAGE | grep CVE-2025-26465
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2025:16823 access.redhat.com · vendor advisory
- RHSA-2025:3837 access.redhat.com · vendor advisory
- RHSA-2025:6993 access.redhat.com · vendor advisory
- RHSA-2025:8385 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2025-26465 access.redhat.com · vdb entry
- RHBZ#2344780 bugzilla.redhat.com · issue tracking
Exploits and proof of concept
- https://seclists.org/oss-sec/2025/q1/144 seclists.org · exploit
Other references
- https://access.redhat.com/solutions/7109879 access.redhat.com
- https://lists.debian.org/debian-lts-announce/2025/02/msg00020.html lists.debian.org
- https://www.openwall.com/lists/oss-security/2025/02/18/1 openwall.com
- https://www.openwall.com/lists/oss-security/2025/02/18/4 openwall.com
- https://www.theregister.com/2025/02/18/openssh_vulnerabilities_mitm_dos/ theregister.com
- https://bugzilla.suse.com/show_bug.cgi?id=1237040 bugzilla.suse.com
- https://security-tracker.debian.org/tracker/CVE-2025-26465 security-tracker.debian.org
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.6/common/008_ssh.patch.sig ftp.openbsd.org
- https://ubuntu.com/security/CVE-2025-26465 ubuntu.com
- https://www.openssh.com/releasenotes.html#9.9p2 openssh.com
- https://blog.qualys.com/vulnerabilities-threat-research/2025/02/18/qualys-tru-discovers-two-vulnerabilities-in-openssh-cve-2025-26465-cve-2025-26466 blog.qualys.com
- https://lists.mindrot.org/pipermail/openssh-unix-announce/2025-February/000161.html lists.mindrot.org
8 more
- https://security.netapp.com/advisory/ntap-20250228-0003/ security.netapp.com
- https://www.vicarius.io/vsociety/posts/cve-2025-26465-detect-vulnerable-openssh vicarius.io
- https://www.vicarius.io/vsociety/posts/cve-2025-26465-mitigate-vulnerable-openssh vicarius.io
- http://seclists.org/fulldisclosure/2025/May/8 seclists.org
- http://seclists.org/fulldisclosure/2025/May/7 seclists.org
- http://seclists.org/fulldisclosure/2025/Feb/18 seclists.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-585531.html cert-portal.siemens.com
Source: the record CVE-2025-26465 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse