MikroTik router SSH client trusts any server's key

Published

MikroTik routers that log in to other machines over SSH do not check that the machine on the other end is the one they meant to reach. Anyone who can intercept or redirect that connection can pose as the server, collect the username and password the router sends, and feed back fake command output that the router records as a success. The flaw, tracked as CVE-2026-67280, affects RouterOS from version 6.0.0 up to, but not including, 7.25.

The bug was found by Sławomir Rozbicki of CERT Polska during the team's own research. CERT Polska coordinated the disclosure with MikroTik and published its advisory on 1 December 2026. No CVSS score has been published for it yet.

The router never asks who is answering

SSH protects a connection partly by having the server prove its identity with a host key, a cryptographic fingerprint the client is supposed to remember or check against a known value. According to CERT Polska, the outbound SSH client behind RouterOS's /system ssh and /system ssh-exec commands accepts any cryptographically valid host key during the key exchange. It does not verify that the key belongs to the requested endpoint, does not remember a key on first use, does not compare it against a known-host entry, and offers no way to require a pinned fingerprint.

The flaw sits in the router acting as a client, not in the SSH server that administrators use to log in to the router. That narrows who is exposed: the risk falls on networks where RouterOS devices are scripted to SSH out to other systems, for example to push configuration, pull backups or run commands on neighbouring equipment.

Why stolen router credentials travel far

CERT Polska describes two outcomes for an attacker positioned to receive or redirect one of those outbound connections. The first is credential theft: the router hands over the username and password it was configured to use. The second is deception: the attacker can return output of their choosing with a false success status, so an automation job that believes it changed a remote device may have changed nothing at all.

Credentials used by network automation tend to be reused across many devices, which is what makes a quiet interception worth an attacker's time. MikroTik equipment has been a steady target this year, including a pre-authentication flaw in the RouterOS web interface and an SSH takeover campaign earlier in the autumn. CERT Polska has not reported exploitation of CVE-2026-67280.

Upgrade to RouterOS 7.25

MikroTik fixed the issue in RouterOS 7.25. Administrators should upgrade, then review any scripts or scheduled jobs that call /system ssh or /system ssh-exec. Until a device is patched, treat the credentials those jobs use as exposed on any path an attacker could touch: give them the narrowest privileges possible on the target systems, rotate them after upgrading, and prefer management paths that run over trusted, segmented networks.

The flaw is a reminder that a device's security posture covers the connections it makes as well as the ones it accepts. An SSH client that skips host key checks gives up the main protection SSH offers against an attacker sitting in the middle. More on Poland's coordinated disclosure work is on our Poland country profile.

This briefing is provided by IntelFusions for informational and defensive purposes only. It is based on sources assessed to be reliable at the time of writing, and analytic judgments carry the confidence levels indicated. Indicators of compromise are defanged; re-arm them only in controlled environments. IntelFusions is not affiliated with the organizations named and makes no warranty as to completeness or accuracy.

Earlier in Vulnerabilities

All Vulnerabilities briefings

Latest briefings

Read the full analysis on IntelFusions