CVE-2025-26465

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

At a glance

Severity
MEDIUM 6.8
EPSS
EPSS 7.72 % · percentile 95 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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.

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:NNVD · secalert@redhat.com (Secondary)
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:NNVD · nvd@nist.gov (Primary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
OpenSSHaffected 6.8p1 ≤ 9.9p1
Red Hat · Red Hat Enterprise Linux 8unaffected 0:8.0p1-26.el8_10 < *
Red Hat · Red Hat Enterprise Linux 8unaffected 0:8.0p1-26.el8_10 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:8.7p1-45.el9 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:8.7p1-45.el9 < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Supportunaffected 0:8.7p1-38.el9_4.5 < *
Red Hat · Red Hat Discovery 1.14unaffected 1.14.3-1748529279 < *
Red Hat · Red Hat Enterprise Linux 10
Red Hat · Red Hat Enterprise Linux 6
Red Hat · Red Hat Enterprise Linux 7
Red Hat · Red Hat OpenShift Container Platform 4

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD