CVE-2025-26465
openssh: Machine-in-the-middle attack if VerifyHostKeyDNS is enabled
Overview
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.
Source: OX vulnerability database
Severity
6.8 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Weakness: CWE-390
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | OpenSSH_jll | <9.9.1+0 | 9.9.1+0 |
Open a package to see all its vulnerabilities.
Operating systems · 59 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | openssh | 0:9.8p1-3.azl3 |
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | pam-ssh-agent-auth | 0.10.3-7.26.0.1.el8_10 |
| 8 | openssh +6 | 8.0p1-26.0.1.el8_10 |
| 9 | pam-ssh-agent-auth | 0.10.4-5.45.0.2.el9 |
| 9 | openssh +4 | 8.7p1-45.0.2.el9 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssh +3 | 8.9p1-9.ph4 |
| 5.0 | openssh +3 | 9.3p2-12.ph5 |
Red Hat 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openshift-ose-rhel-coreos-9 | affected | — |
| 7 | openssh +8 | eol | — |
| 8 | openshift-ose-rhel-coreos-9 | affected | — |
| 8 | pam-ssh-agent-auth | 0:0.10.3-7.26.el8_10 | RHSA-2025:16823 |
| 8 | openssh +6 | 0:8.0p1-26.el8_10 | RHSA-2025:16823 |
| 9 | openshift-ose-rhel-coreos-9 | affected | — |
4 more rows
SUSE Linux Enterprise 4 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | openssh +3 | 7.2p2-81.26.1 | SUSE-SU-2025:0659-1 |
| 12.5 | openssh8-4 +5 | 8.4p1-8.16.1 | SUSE-SU-2025:0744-1 |
| 15.4 | openssh +6 | 8.4p1-150300.3.42.1 | SUSE-SU-2025:0605-1 |
| 15.5 | openssh +6 | 8.4p1-150300.3.42.1 | SUSE-SU-2025:0605-1 |
| 15.6 | openssh-askpass-gnome | 9.6p1-150600.6.15.1 | SUSE-SU-2025:0585-1 |
| 15.6 | openssh +6 | 9.6p1-150600.6.15.2 | SUSE-SU-2025:0585-1 |
SUSE Linux Enterprise Micro 7 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | openssh +4 | 8.4p1-150300.3.42.1 | SUSE-SU-2025:0605-1 |
| 5.2 | openssh +4 | 8.4p1-150300.3.42.1 | SUSE-SU-2025:0605-1 |
| 5.3 | openssh +4 | 8.4p1-150300.3.42.1 | SUSE-SU-2025:0605-1 |
| 5.4 | openssh +4 | 8.4p1-150300.3.42.1 | SUSE-SU-2025:0605-1 |
| 5.5 | openssh +4 | 8.4p1-150300.3.42.1 | SUSE-SU-2025:0605-1 |
| 6.0 | openssh +5 | 9.6p1-3.1 | SUSE-SU-2025:20160-1 |
1 more row
alma 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | pam-ssh-agent-auth | 0.10.3-7.26.el8_10 |
| 8 | openssh +6 | 8.0p1-26.el8_10 |
| 9 | pam-ssh-agent-auth | 0.10.4-5.45.el9 |
| 9 | openssh +4 | 8.7p1-45.el9 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssh | 9.9_p2-r0 |
| 3.23 | openssh | 9.9_p2-r0 |
| 3.24 | openssh | 9.9_p2-r0 |
| edge | openssh | 9.9_p2-r0 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | pam-ssh-agent-auth +1 | 0.10.4-4.8.amzn2023.0.14 |
| 2023 | openssh +8 | 8.7p1-8.amzn2023.0.14 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | openssh | 1:8.4p1-5+deb11u4 |
| 12 | openssh | 1:9.2p1-2+deb12u5 |
| 13 | openssh | 1:9.9p2-1 |
| 14 | openssh | 1:9.9p2-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 1:9.2p1-2+deb12u5 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | openssh +7 | 9.9p2-1.1 | openSUSE-SU-2025:14820-1 |
rocky 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | pam-ssh-agent-auth | 0.10.3-7.26.el8_10 |
| 8 | openssh +5 | 8.0p1-26.el8_10 |
| 9 | pam-ssh-agent-auth | 0.10.4-5.45.el9 |
| 9 | openssh +4 | 8.7p1-45.el9 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-openssh | 1:8.4p1-5+deb11u4 |
| 12 | rootio-openssh | 1:9.2p1-2+deb12u5 |
| 13 | rootio-openssh | 1:9.9p2-1 |
ubuntu 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | openssh | 1:7.6p1-4ubuntu0.7+esm4 |
| 20.04 | openssh | 1:8.2p1-4ubuntu0.12 |
| 20.04-ESM | openssh | 1:8.2p1-4ubuntu0.12 |
| 22.04 | openssh | 1:8.9p1-3ubuntu0.11 |
| 24.04 | openssh | 1:9.6p1-3ubuntu13.8 |
| 26.04 | openssh | 9.9p1-3ubuntu3 |
References
- seclists.org http://seclists.org/fulldisclosure/2025/Feb/18
- seclists.org http://seclists.org/fulldisclosure/2025/May/7
- seclists.org http://seclists.org/fulldisclosure/2025/May/8
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:16823
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:3837
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:6993
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:8385
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-26465
- access.redhat.com https://access.redhat.com/solutions/7109879
- blog.qualys.com https://blog.qualys.com/vulnerabilities-threat-research/2025/02/18/qualys-tru-discovers-two-vulnerabilities-in-openssh-cve-2025-26465-cve-2025-26466
Show all 38 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2344780
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2344780
- bugzilla.suse.com https://bugzilla.suse.com/show_bug.cgi?id=1237040
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-585531.html
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-26465
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-6993.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:16823
- ftp.openbsd.org https://ftp.openbsd.org/pub/OpenBSD/patches/7.6/common/008_ssh.patch.sig
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-26465.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-6993.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/02/msg00020.html
- lists.mindrot.org https://lists.mindrot.org/pipermail/openssh-unix-announce/2025-February/000161.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-26465
- seclists.org https://seclists.org/oss-sec/2025/q1/144
- security-tracker.debian.org https://security-tracker.debian.org/tracker/CVE-2025-26465
- security.netapp.com https://security.netapp.com/advisory/ntap-20250228-0003/
- ubuntu.com https://ubuntu.com/security/CVE-2025-26465
- ubuntu.com https://ubuntu.com/security/notices/USN-7270-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7270-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-26465
- www.openssh.com https://www.openssh.com/releasenotes.html#9.9p2
- www.openwall.com https://www.openwall.com/lists/oss-security/2025/02/18/1
- www.openwall.com https://www.openwall.com/lists/oss-security/2025/02/18/4
- www.theregister.com https://www.theregister.com/2025/02/18/openssh_vulnerabilities_mitm_dos/
- www.vicarius.io https://www.vicarius.io/vsociety/posts/cve-2025-26465-detect-vulnerable-openssh
- www.vicarius.io https://www.vicarius.io/vsociety/posts/cve-2025-26465-mitigate-vulnerable-openssh
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.