CVE-2025-26465 is a server impersonation flaw in the OpenSSH client, versions 6.8p1 to 9.9p1. When VerifyHostKeyDNS is enabled, which is off by default, an on-path attacker who exhausts the client's memory makes an error in the host key check count as success and can pose as any server. NVD scores it 6.8. Fixed in OpenSSH 9.9p2.
Vulnerability summary
CVSS base score
6.8
Medium severity
EPSS score (FIRST)
7.7%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2025-26465 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| OpenSSH client (ssh) | cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* | 6.8p1 to 9.9p1 inclusive (OpenSSH security page); NVD CPEs 6.8p1, 6.9 to 9.8 inclusive, 9.9 and 9.9p1; fixed in 9.9p2 |
| Debian openssh package | pkg:deb/debian/openssh | Fixed in 1:8.4p1-5+deb11u4 (bullseye, DLA-4057-1), 1:9.2p1-2+deb12u5 (bookworm, DSA-5868-1), 1:9.9p2-1 (unstable) (Debian security tracker) |
| Red Hat Enterprise Linux openssh | pkg:rpm/redhat/openssh | Fixed in openssh-8.0p1-26.el8_10 (RHEL 8) and openssh-8.7p1-45.el9 (RHEL 9); RHEL 10 not affected (Red Hat) |
| Buildroot package/openssh | — | Bumped to 9.9p2 on 2025-02-20 (commit 002931cc); fixed in 2025.02, 2024.11.2 and 2024.02.11; 2024.11.1 carries 9.9p1 and 2024.02.10 carries 9.7p1 |
| OpenWrt packages feed: openssh (openssh-client) | — | openwrt-24.10 carries 9.9p2 (fixed); openwrt-23.05 and openwrt-22.03 carry 9.8p1 and openwrt-21.02 carries 8.4p1, without a fix for this CVE (OpenWrt packages repository, as of 2026-11-19) |
| Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP and SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (GNU/Linux subsystem) | — | V3.1.5; no fix listed for V3.1.5, mitigations only, V3.1.5 no longer maintained (Siemens SSA-082556, V8 of 2026-10-13) |
| Siemens SIDIS Secured SmartPlug | — | Before V7.26.0310; update to V7.26.0310 or later (Siemens SSA-585531) |
What does this mean for affected devices?
CVE-2025-26465 is a server impersonation flaw in the OpenSSH client, ssh(1): when the VerifyHostKeyDNS option is enabled, a logic error in how the client handles error codes lets an on-path attacker skip the host key check and pose as any server. Red Hat, the CNA, classifies it as CWE-390 (detection of error condition without action); that is the only CWE on the record, listed by NVD as Red Hat's Secondary entry, with no NVD CWE of its own. NVD's Primary score is 6.8, CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N, the same score and vector Red Hat published with a Moderate rating. NVD published it on 2025-02-18 (NVD, CVE record, Red Hat).
What has to be true for an attack to work?
Three things. The victim is an OpenSSH client, not a server. VerifyHostKeyDNS must be set to yes or ask; the OpenSSH 9.9p2 release notes note that it is off by default. And the attacker must sit between client and server and exhaust the client's memory at one specific point. The Qualys advisory, posted to oss-security on 2025-02-18, explains that verify_host_key_callback() only treats a return value of -1 as failure, so an out-of-memory error (-2) inside the DNS check is taken as success. Qualys forced that error with a large host key plus a flood of PONG replies, the queue behind CVE-2025-26466. Its proof of concept impersonated a server to an OpenSSH 9.6p1 client from Ubuntu 24.04 whose memory was limited to 256 MB. The attack works whether or not the real server has an SSHFP DNS record, and needs no user interaction beyond connecting. Qualys also notes FreeBSD enabled VerifyHostKeyDNS by default from September 2013 to March 2023, so check BSD-based appliances. A successful attack exposes whatever the client then sends or receives, such as a password or a pushed configuration.
Which versions and devices are affected?
The OpenSSH security page lists ssh(1) in OpenSSH 6.8p1 to 9.9p1 inclusive; Qualys traces it to commit 5e39a49 from December 2014. Devices are exposed when their firmware runs the ssh client with the option on, for example for scripted uploads or tunnels:
- Debian fixed bullseye in 1:8.4p1-5+deb11u4 (DLA-4057-1), bookworm in 1:9.2p1-2+deb12u5 (DSA-5868-1) and unstable in 1:9.9p2-1 (Debian security tracker).
- Red Hat fixed RHEL 8 in openssh-8.0p1-26.el8_10 and RHEL 9 in openssh-8.7p1-45.el9; RHEL 10 is not affected.
- Buildroot moved to 9.9p2 on 2025-02-20 (Buildroot commit 002931cc); 2025.02, 2024.11.2 and 2024.02.11 ship it, 2024.11.1 and 2024.02.10 do not.
- In the OpenWrt packages feed, openwrt-24.10 moved to 9.9p2 on 2025-03-12 (OpenWrt commit f1bf549d). As of 2026-11-19, openwrt-23.05 and openwrt-22.03 carry 9.8p1 and openwrt-21.02 carries 8.4p1, all in range with no patch for this CVE (openwrt-23.05 Makefile).
Siemens ProductCERT lists two products. SSA-082556 covers the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518-4 PN/DP MFP and 1518F-4 PN/DP MFP and the SIPLUS S7-1500 CPU 1518-4 PN/DP MFP firmware V3.1.5: as of its 2026-10-13 version it gives no fix for this CVE, recommends limiting shell access to the GNU/Linux subsystem to trusted personnel and only building and running trusted applications, and says V3.1.5 is no longer maintained and users should update to the latest version. SSA-585531 lists the SIDIS Secured SmartPlug before V7.26.0310 and recommends V7.26.0310 or later.
How do you fix CVE-2025-26465?
Update to OpenSSH 9.9p2 or later, or to a vendor package carrying the fix commit 0832aac. Where that is impossible, set VerifyHostKeyDNS no in ssh_config and in any -o options used by device scripts; Red Hat names this as the mitigation and says none exists if the option must stay on. Our OpenSSH vulnerabilities in embedded firmware guide shows how to find which OpenSSH parts a device runs. The same builds usually need the fixes for Terrapin, CVE-2023-48795, another on-path attack, and CVE-2023-38408 in the client-side ssh-agent.
Is CVE-2025-26465 exploited?
It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18, 1,786 entries). CISA's SSVC entry, dated 2025-02-19, records exploitation as "poc", automatable as "no" and technical impact as "total". FIRST EPSS gives it 0.077, the 94.7th percentile, in the 2026-11-18 dataset (CISA KEV, FIRST EPSS).
Evidence
- NVD: when VerifyHostKeyDNS is enabled, a machine-in-the-middle can impersonate a legitimate server because OpenSSH mishandles error codes when verifying the host key; the attacker must exhaust the client's memory first. NVD Primary CVSS v3.1 6.8 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N; only CWE is CWE-390 from Red Hat (Secondary); CPEs openbsd:openssh 6.8p1, 6.9 to 9.8 inclusive, 9.9, 9.9p1; published 2025-02-18. — NVD
- CVE.org: state PUBLISHED, CNA Red Hat, published 2025-02-18, CVSS 3.1 6.8 same vector, Red Hat severity Moderate, CWE-390; OpenSSH 6.8p1 to 9.9p1 affected; CISA-ADP SSVC (2025-02-19) exploitation poc, automatable no, technical impact total; Siemens ADP lists SIDIS Secured SmartPlug before V7.26.0310 and SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP from V3.1.5. — CVE.org
- OpenSSH 9.9p2 released 2025-02-18: fixes CVE-2025-26465, ssh(1) in 6.8p1 to 9.9p1 inclusive allowed an on-path attacker to impersonate any server when VerifyHostKeyDNS is enabled; option off by default. Security page lists the same range. — OpenSSH
- Qualys advisory: works with VerifyHostKeyDNS yes or ask, without user interaction, whether or not the server has an SSHFP record; introduced December 2014 by commit 5e39a49; verify_host_key_callback() only treats -1 as an error, so SSH_ERR_ALLOC_FAIL (-2) from sshkey_from_private() bypasses the check; memory exhausted with a large host key and PONG packets; PoC against OpenSSH 9.6p1 from Ubuntu 24.04 limited to 256MB; FreeBSD enabled VerifyHostKeyDNS by default September 2013 to March 2023; coordinated release 2025-02-18. — Qualys / oss-security
- Debian: fixed bullseye 1:8.4p1-5+deb11u4 (DLA-4057-1), bookworm 1:9.2p1-2+deb12u5 (DSA-5868-1), unstable 1:9.9p2-1; introduced by commit 5e39a49 (V_6_8_P1), fixed by commit 0832aac. — Debian security tracker
- Red Hat: Moderate, 6.8; fixed in openssh-0:8.0p1-26.el8_10 (RHEL 8), openssh-0:8.7p1-45.el9 (RHEL 9), openssh-0:8.7p1-38.el9_4.5 (RHEL 9.4 EUS); RHEL 10 not affected; mitigation: set VerifyHostKeyDNS no (RHEL default); no mitigation meeting Red Hat criteria if the option must be enabled. — Red Hat
- Buildroot commit 002931cc (2025-02-20) 'package/openssh: security bump version to 9.9p2', fixes CVE-2025-26465 (ssh) and CVE-2025-26466 (sshd); openssh.mk is 9.9p2 in 2025.02, 2024.11.2 and 2024.02.11, 9.9p1 in 2024.11.1, 9.7p1 in 2024.02.10. — Buildroot
- OpenWrt packages: commit f1bf549d (2025-03-12) bumps openwrt-24.10 to 9.9p2 citing CVE-2025-26465; openwrt-23.05 and openwrt-22.03 PKG_VERSION 9.8p1, openwrt-21.02 8.4p1, no patch for this CVE (read 2026-11-19). — OpenWrt packages
- Siemens SSA-082556 (V8, 2026-10-13): CVE-2025-26465 affects the additional GNU/Linux subsystem of SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, 1518F-4 PN/DP MFP and SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5; remediation 'Currently no fix is available'; mitigations: limit access to the interactive shell to trusted personnel, only build and run applications from trusted sources; V3.1.5 no longer maintained, update to the latest version; Siemens CVSS 6.8, CWE-390. SSA-398330 V2.7 removed CVE-2025-26465 as not fixed in V3.1.5 and advised in SSA-082556. — Siemens ProductCERT
- Siemens SSA-585531 (V1.0, 2026-07-14): SIDIS Secured SmartPlug before V7.26.0310 affected by CVE-2025-26465; update to V7.26.0310 or later; Siemens CVSS 6.8, CWE-390. — Siemens ProductCERT
- Not in CISA KEV catalog version 2026.11.18 (1,786 entries); EPSS 0.07723, percentile 0.94731, dataset 2026-11-18. — CISA KEV / FIRST EPSS

Related advisories
Sources
- NVD
- OpenSSH 9.9p2 release notes (2025-02-18)
- OpenSSH security page
- Qualys Security Advisory: CVE-2025-26465 MitM and CVE-2025-26466 DoS
- oss-security: Qualys advisory post (2025-02-18)
- OpenSSH fix commit 0832aac
- Debian security tracker: CVE-2025-26465
- Red Hat: CVE-2025-26465
- Buildroot commit 002931cc: openssh security bump to 9.9p2
- OpenWrt packages commit f1bf549d: openssh bump to 9.9p2 (openwrt-24.10)
- OpenWrt packages: net/openssh Makefile (openwrt-23.05)
- Siemens ProductCERT SSA-082556
- Siemens ProductCERT SSA-585531
- CVE.org record CVE-2025-26465 (CNA: Red Hat)
- CISA KEV
- FIRST EPSS
Frequently asked questions
Does CVE-2025-26465 affect an SSH server running on a device?
No. The flaw is in the ssh(1) client's host key verification, so a device is exposed only when its firmware runs the OpenSSH client with VerifyHostKeyDNS set to yes or ask, for example in scripts that connect out to other hosts (per the OpenSSH 9.9p2 release notes and the Qualys advisory).
Which OpenSSH versions are affected by CVE-2025-26465?
ssh(1) in OpenSSH 6.8p1 to 9.9p1 inclusive; the bug dates from a December 2014 commit. OpenSSH 9.9p2, released on 2025-02-18, fixes it. Debian ships the fix as 1:8.4p1-5+deb11u4 for bullseye and 1:9.2p1-2+deb12u5 for bookworm (per the OpenSSH security page, the Qualys advisory and the Debian security tracker).
How can I block CVE-2025-26465 without upgrading?
Keep VerifyHostKeyDNS at its default of no in every ssh_config file and in any -o options passed by scripts. Red Hat states that no mitigation meeting its criteria exists when the option must stay enabled (per the OpenSSH 9.9p2 release notes and Red Hat).
Which industrial products list CVE-2025-26465?
Siemens lists the GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP and SIPLUS variant at V3.1.5, with no fix for that version and mitigations only, and the SIDIS Secured SmartPlug before V7.26.0310, fixed in V7.26.0310 (per Siemens ProductCERT SSA-082556 and SSA-585531).
Is CVE-2025-26465 exploited in the wild?
It is not in the CISA KEV catalog as of 2026-11-19 (catalog version 2026.11.18). Qualys published a working demonstration against a memory-limited client, CISA's SSVC entry records a proof of concept, and FIRST EPSS gives it 0.077, the 94.7th percentile, in the 2026-11-18 dataset (per CISA KEV, CVE.org, the Qualys advisory and FIRST EPSS).
Questions about this page?