CVE-2026-67280: SSH server impersonation possible in Mikrotik RouterOS
The RouterOS outbound SSH client in "/system ssh" and "/system ssh-exec" accepts unrelated cryptographically valid server host keys during key exchange without verifying that the key belongs to the requested endpoint, persisting trust on first use, comparing against a known-host entry, or requiring a pinned fingerprint. An attacker positioned to receive or redirect an outbound RouterOS SSH connection can impersonate the intended server, capture the supplied username and password, and return attacker-selected command output with a false success status.This issue was fixed in version 7.25
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.25
Event History
Frequently Asked Questions
Which RouterOS systems are exposed to this issue?
Systems that use the outbound SSH client through /system ssh or /system ssh-exec are exposed. The issue affects connections where an attacker can receive or redirect the RouterOS device's outbound SSH connection.
What does an attacker need to exploit this vulnerability?
The attacker must be positioned to receive or redirect an outbound SSH connection from the RouterOS device. They must present a cryptographically valid SSH server host key, but it does not need to belong to the intended server.
What can an attacker obtain or control after impersonating the server?
An attacker can capture the username and password supplied by RouterOS and provide attacker-selected command output. They can also cause the operation to report a false success status.
Does the affected SSH client validate or retain server identity information?
No. It does not verify that the host key belongs to the requested endpoint, persist trust on first use, compare against a known-host entry, or require a pinned fingerprint.
What version contains the fix?
The issue was fixed in RouterOS version 7.25.