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

Published Feb 10, 2025
·
Updated

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.

Other sources

afpfs. The issue was addressed with improved memory handling.

— Apple

afpfs. This issue was addressed with improved checks.

— Apple

Apple Intelligence Reports. A permissions issue was addressed with additional restrictions.

— Apple

AppleJPEG. The issue was addressed with improved input sanitization.

— Apple

Audio. A double free issue was addressed with improved memory management.

— Apple

Credit

Joseph Ravichandran@@0xjprx(MIT CSAIL), Thomas Völkl@@vollkorntomate, SEEMOO, TU Darmstadt, Dave G., Dillon Franke(Google Project Zero), Guilherme Rambo(Best Buddy Apps), Hossein Lotfi@@hosselot(Trend Micro Zero Day Initiative), wac(Trend Micro Zero Day Initiative), Kirin@@Pwnrin(Fudan University), LFY@@secsys(Fudan University), Tony Iskow@@Tybbow, Christian Kohlschütter, an anonymous researcher, Bohdan Stasiuk@@bohdan_stasiuk, CVE-2024-8176, Paweł Płatek (Trail(Bits), Saagar Jha, Adam M., CVE-2025-26465, CVE-2025-26466, Michael DePlante@@izobashi(Trend Micro Zero Day Initiative), Lucas Leong@@_wmliang_(Trend Micro Zero Day Initiative), Sourabhkumar Mishra, Lyutoon(Atredis Partners), YenKoc(Atredis Partners), Dayton Pidhirney(Atredis Partners), Mateusz Krzywicki@@krzywix, Csaba Fitzl@@theevilbit(Kandji)

Affected Software

43 affected componentsFixes available
Microsoft cbl2 openssh 8.9p1-8
Microsoft azl3 openssh 9.8p1-3
Microsoft azl3 openssh 9.8p1-4
Microsoft cbl2 openssh 8.9p1-7
IBM DS8A00( R10.0 - R10.1 )<=10.1.3.0 - 10.10.106.1
IBM DS8900F ( R9.4)<=89.40.83.0-89.44.5.0
debian/openssh<1:9.2p1-2+deb12u5
1:9.2p1-2+deb12u5
debian/openssh<1:9.9p2-1
1:9.9p2-1
debian/openssh<1:9.9p2-1
1:9.9p2-1
OpenBSD OpenSSH>=6.9<=9.8
OpenBSD OpenSSH=6.8-p1
OpenBSD OpenSSH=9.9
OpenBSD OpenSSH=9.9-p1
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Ontap=9
redhat OpenShift Container Platform=4.0
Debian Debian Linux=11.0
Debian Debian Linux=12.0
redhat Enterprise Linux=9.0
Apple macOS Sequoia<15.5
15.5
Apple macOS Sonoma<14.7.6
14.7.6
debian/openssh
1:8.4p1-5+deb11u41:9.2p1-2+deb12u51:9.9p2-1
ubuntu/openssh<1:7.2p2-4ubuntu2.10+esm7
1:7.2p2-4ubuntu2.10+esm7
ubuntu/openssh<1:7.2p2-4ubuntu2.fips.2.10.7
1:7.2p2-4ubuntu2.fips.2.10.7
ubuntu/openssh*
ubuntu/openssh<1:7.6p1-4ubuntu0.7+esm4
1:7.6p1-4ubuntu0.7+esm4
ubuntu/openssh-ssh1*
ubuntu/openssh<1:7.9p1-10~ubuntu18.04.fips.0.10
1:7.9p1-10~ubuntu18.04.fips.0.10
ubuntu/openssh*
ubuntu/openssh<1:8.2p1-4ubuntu0.12
1:8.2p1-4ubuntu0.12
ubuntu/openssh-ssh1*
ubuntu/openssh<1:8.2p1-4ubuntu0.fips.0.12
1:8.2p1-4ubuntu0.fips.0.12
ubuntu/openssh*
ubuntu/openssh<1:8.9p1-3ubuntu0.11
1:8.9p1-3ubuntu0.11
ubuntu/openssh-ssh1*
ubuntu/openssh*
ubuntu/openssh<1:8.9p1-3ubuntu0.11+Fips1
1:8.9p1-3ubuntu0.11+Fips1
ubuntu/openssh<1:9.6p1-3ubuntu13.8
1:9.6p1-3ubuntu13.8
ubuntu/openssh-ssh1*
ubuntu/openssh<1:9.6p1-3ubuntu13.12+Fips1
1:9.6p1-3ubuntu13.12+Fips1
ubuntu/openssh-ssh1*
ubuntu/openssh-ssh1*
ubuntu/openssh-ssh1*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.2p1-2+deb12u5
  2. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.9p2-1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.5
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.7.6
  5. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:8.4p1-5+deb11u4Fixed in 1:9.2p1-2+deb12u5Fixed in 1:9.9p2-1
  6. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:7.2p2-4ubuntu2.10+esm7
  7. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:7.2p2-4ubuntu2.fips.2.10.7
  8. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:7.6p1-4ubuntu0.7+esm4
  9. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:7.9p1-10~ubuntu18.04.fips.0.10
  10. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:8.2p1-4ubuntu0.12
  11. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:8.2p1-4ubuntu0.fips.0.12
  12. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:8.9p1-3ubuntu0.11
  13. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:8.9p1-3ubuntu0.11+Fips1
  14. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.6p1-3ubuntu13.8
  15. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.6p1-3ubuntu13.12+Fips1
  16. Configuration

    Keep VerifyHostKeyDNS disabled; the option is disabled by default and enabling it allows an active machine-in-the-middle attack to impersonate the server.

    OpenSSH client VerifyHostKeyDNS = disabled

Event History

Feb 10, 2025
Data Sourced
via Red Hat·10:04 PM
DescriptionSeverityAffected Software
Feb 18, 2025
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Description
News Published
via The Register·03:30 PM
Exploit Published
via GitHub·04:53 PM
News Published
via BleepingComputer·05:07 PM
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Event
via NVD·07:15 PM
Feb 22, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Mar 5, 2025
Data Sourced
via NVD·06:54 PM
RemedyAffected Software
Updated
via NVD·06:54 PM
Severity
Mar 6, 2025
Updated
via NVD·05:20 PM
Affected Software
Mar 25, 2025
Event
via FIRST·12:00 AM
Apr 14, 2025
Updated
via NVD·11:15 AM
Affected Software
May 12, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Affected Software
May 13, 2025
Updated
via NVD·09:15 AM
Affected Software
May 27, 2025
Updated
via NVD·04:15 PM
Affected Software
Jun 2, 2025
Updated
via NVD·03:15 PM
Affected Software
Jul 29, 2025
Updated
via Apple·12:00 AM
Affected Software
Aug 19, 2025
Updated
via Ubuntu·12:00 AM
Description
Sep 26, 2025
Updated
via NVD·07:15 AM
Affected Software
Dec 18, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jan 15, 2026
Updated
via IBM·12:00 AM
Affected Software
Mar 2, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 5, 2026
Data Sourced
via OSV·09:16 PM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-26465?

CVE-2025-26465 has a critical severity level due to the potential for a machine-in-the-middle attack.

2

How do I fix CVE-2025-26465?

To fix CVE-2025-26465, upgrade to OpenSSH versions 1:8.4p1-5+deb11u4, 1:9.2p1-2+deb12u5, or 1:9.9p2-1.

3

What systems are affected by CVE-2025-26465?

CVE-2025-26465 affects OpenSSH versions up to 1:8.4p1-5+deb11u3, 1:9.2p1-2+deb12u4, and 1:9.9p1-3.

4

Can CVE-2025-26465 lead to unauthorized access?

Yes, CVE-2025-26465 can allow an attacker to impersonate a legitimate server, potentially leading to unauthorized access.

5

Is it safe to use OpenSSH with VerifyHostKeyDNS enabled after the fix for CVE-2025-26465?

After applying the fix for CVE-2025-26465, using OpenSSH with VerifyHostKeyDNS enabled is considered safe.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203