Skip to content

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

MediumCVSS 6.8 EPSS 7.7%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
azure linux openssh(Azure Linux:3.0) < 9.8p1-3 9.8p1-3
cbl-mariner openssh(CBL-Mariner:2.0) < 8.9p1-7 8.9p1-7
debian/openssh(Debian:12) < 1:9.2p1-2+deb12u5 1:9.2p1-2+deb12u5
debian/openssh(Debian:12) = 1:9.2p1-2 No fix listed
debian/openssh(Debian:12) = 1:9.2p1-2+deb12u1 No fix listed
debian/openssh(Debian:12) = 1:9.2p1-2+deb12u2 No fix listed
debian/openssh(Debian:12) = 1:9.2p1-2+deb12u3 No fix listed
debian/openssh(Debian:12) = 1:9.2p1-2+deb12u4 No fix listed
debian/openssh(Debian:13) < 1:9.9p2-1 1:9.9p2-1
debian/openssh(Debian:14) < 1:9.9p2-1 1:9.9p2-1
OpenSSH >= 6.8p1, <= 9.9p1 No fix listed
redhat enterprise linux < 0:8.0p1-26.el8_10 0:8.0p1-26.el8_10
redhat enterprise linux < 0:8.7p1-45.el9 0:8.7p1-45.el9
redhat rhel eus < 0:8.7p1-38.el9_4.5 0:8.7p1-38.el9_4.5
redhat discovery < 1.14.3-1748529279 1.14.3-1748529279
redhat enterprise linux = 10 No fix listed
redhat rhel els = 6 No fix listed
redhat rhel els = 7 No fix listed
redhat openshift All versions No fix listed
Siemens SIDIS Secured SmartPlug < V7.26.0310 V7.26.0310
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
ubuntu/openssh(Ubuntu:22.04) < 1:8.9p1-3ubuntu0.11 1:8.9p1-3ubuntu0.11
ubuntu/openssh-ssh1(Ubuntu:22.04) All versions No fix listed
Show 21 more
ProductAffected versionsFixed in
alpine/openssh(Alpine:v3.18) >= 6.9, < 9.3_p2-r3 9.3_p2-r3
alpine/openssh(Alpine:v3.19) >= 6.9, < 9.6_p1-r2 9.6_p1-r2
alpine/openssh(Alpine:v3.20) >= 6.9, < 9.7_p1-r5 9.7_p1-r5
alpine/openssh(Alpine:v3.21) >= 6.9, < 9.9_p2-r0 9.9_p2-r0
alpine/openssh(Alpine:v3.22) >= 6.9, < 9.9_p2-r0 9.9_p2-r0
alpine/openssh(Alpine:v3.23) >= 6.9, < 9.9_p2-r0 9.9_p2-r0
alpine/openssh(Alpine:v3.24) >= 6.9, < 9.9_p2-r0 9.9_p2-r0
ubuntu/openssh(Ubuntu:24.04) < 1:9.6p1-3ubuntu13.8 1:9.6p1-3ubuntu13.8
ubuntu/openssh-ssh1(Ubuntu:24.04) All versions No fix listed
ubuntu/openssh-ssh1(Ubuntu:26.04) All versions No fix listed
ubuntu/openssh-ssh1(Ubuntu:26.10) All versions No fix listed
OpenBSD openssh >= 6.9, <= 9.8 No fix listed
OpenBSD openssh = 6.8-p1 No fix listed
OpenBSD openssh = 9.9 No fix listed
OpenBSD openssh = 9.9-p1 No fix listed
netapp active iq unified manager All versions No fix listed
netapp ontap = 9 No fix listed
redhat openshift container platform = 4.0 No fix listed
debian linux = 11.0 No fix listed
debian linux = 12.0 No fix listed
redhat enterprise linux = 9.0 No fix listed

References