CVEfocus › CVE database › CVE-2025-26465

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

CVSS 6.8 MediumEPSS 4.3% (higher than 92% of CVEs)Published 2025-02-18Updated 2026-11-24Assigner: redhat

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.

CWE-390

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

43Fixed
4Fix pending
20Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10openssh-ssh1Fix pendingUBUNTU-CVE-2025-26465
Ubuntu 26.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2025-26465
Ubuntu 25.10openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2025-26465
Ubuntu 24.04opensshFixed1:9.6p1-3ubuntu13.8UBUNTU-CVE-2025-26465
Ubuntu 24.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2025-26465
Ubuntu 22.04opensshFixed1:8.9p1-3ubuntu0.11UBUNTU-CVE-2025-26465
Ubuntu 22.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2025-26465
Ubuntu 20.04opensshFixed1:8.2p1-4ubuntu0.12UBUNTU-CVE-2025-26465
Ubuntu 20.04openssh-ssh1Will not fix
openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support…
UBUNTU-CVE-2025-26465
Ubuntu 18.04opensshFix pending1:7.6p1-4ubuntu0.7+esm4 (Ubuntu Pro)UBUNTU-CVE-2025-26465
Ubuntu 18.04openssh-ssh1Fix pendingUBUNTU-CVE-2025-26465
Ubuntu 16.04opensshFix pending1:7.2p2-4ubuntu2.10+esm7 (Ubuntu Pro)UBUNTU-CVE-2025-26465
Debian 14opensshFixed1:9.9p2-1DEBIAN-CVE-2025-26465
Debian 13opensshFixed1:9.9p2-1DEBIAN-CVE-2025-26465
Debian 12opensshFixed1:9.2p1-2+deb12u5DEBIAN-CVE-2025-26465
Red Hat Enterprise Linux 10opensshNot affected
Red Hat Enterprise Linux 10openssh-askpassNot affected
Red Hat Enterprise Linux 10openssh-clientsNot affected
Red Hat Enterprise Linux 10openssh-keycatNot affected
Red Hat Enterprise Linux 10openssh-keysignNot affected
Red Hat Enterprise Linux 10openssh-serverNot affected
Red Hat Enterprise Linux 9opensshFixed0:8.7p1-45.el9RHSA-2025:6993
Red Hat Enterprise Linux 9openssh-askpassFixed0:8.7p1-45.el9RHSA-2025:6993
Red Hat Enterprise Linux 9openssh-clientsFixed0:8.7p1-45.el9RHSA-2025:6993
Red Hat Enterprise Linux 9openssh-keycatFixed0:8.7p1-45.el9RHSA-2025:6993
Red Hat Enterprise Linux 9openssh-serverFixed0:8.7p1-45.el9RHSA-2025:6993
Red Hat Enterprise Linux 9pam_ssh_agent_authFixed0:0.10.4-5.45.el9RHSA-2025:6993
Red Hat Enterprise Linux 8opensshFixed0:8.0p1-26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 8openssh-askpassFixed0:8.0p1-26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 8openssh-cavsFixed0:8.0p1-26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 8openssh-clientsFixed0:8.0p1-26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 8openssh-keycatFixed0:8.0p1-26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 8openssh-ldapFixed0:8.0p1-26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 8openssh-serverFixed0:8.0p1-26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 8pam_ssh_agent_authFixed0:0.10.3-7.26.el8_10RHSA-2025:16823
Red Hat Enterprise Linux 7opensshWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssh-askpassWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssh-cavsWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssh-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssh-keycatWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssh-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssh-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 7openssh-server-sysvinitWill not fix
Out of support scope
Red Hat Enterprise Linux 7pam_ssh_agent_authWill not fix
Out of support scope
Red Hat Enterprise Linux 6opensshWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-askpassWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6openssh-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6pam_ssh_agent_authWill not fix
Out of support scope
AlmaLinux 9opensshFixed8.7p1-45.el9ALSA-2025:6993
AlmaLinux 9openssh-askpassFixed8.7p1-45.el9ALSA-2025:6993
AlmaLinux 9openssh-clientsFixed8.7p1-45.el9ALSA-2025:6993
AlmaLinux 9openssh-keycatFixed8.7p1-45.el9ALSA-2025:6993
AlmaLinux 9openssh-serverFixed8.7p1-45.el9ALSA-2025:6993
AlmaLinux 9pam_ssh_agent_authFixed0.10.4-5.45.el9ALSA-2025:6993
AlmaLinux 8opensshFixed8.0p1-26.el8_10ALSA-2025:16823
AlmaLinux 8openssh-askpassFixed8.0p1-26.el8_10ALSA-2025:16823
AlmaLinux 8openssh-cavsFixed8.0p1-26.el8_10ALSA-2025:16823
AlmaLinux 8openssh-clientsFixed8.0p1-26.el8_10ALSA-2025:16823
AlmaLinux 8openssh-keycatFixed8.0p1-26.el8_10ALSA-2025:16823
AlmaLinux 8openssh-ldapFixed8.0p1-26.el8_10ALSA-2025:16823
AlmaLinux 8openssh-serverFixed8.0p1-26.el8_10ALSA-2025:16823
AlmaLinux 8pam_ssh_agent_authFixed0.10.3-7.26.el8_10ALSA-2025:16823
Rocky Linux 9opensshFixed0:8.7p1-45.el9RLSA-2025:6993
Rocky Linux 8opensshFixed0:8.0p1-26.el8_10RLSA-2025:16823
Alpine Linux 3.24opensshFixed9.9_p2-r0ALPINE-CVE-2025-26465
Alpine Linux 3.23opensshFixed9.9_p2-r0ALPINE-CVE-2025-26465
Alpine Linux 3.22opensshFixed9.9_p2-r0ALPINE-CVE-2025-26465
Alpine Linux 3.21opensshFixed9.9_p2-r0ALPINE-CVE-2025-26465
Alpine Linux 3.20opensshFixed9.7_p1-r5ALPINE-CVE-2025-26465
Alpine Linux 3.19opensshFixed9.6_p1-r2ALPINE-CVE-2025-26465
Alpine Linux 3.18opensshFixed9.3_p2-r3ALPINE-CVE-2025-26465

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.