Hole in MikroTik: SSH hands over the whole router

06.09.2026 6 min 6

CERT Polska published six vulnerabilities in MikroTik RouterOS on 5 September 2026. Two of them chain together and hand an attacker full administrator rights through the MikroTik RouterOS SSH service, with no password and no private key. The team named the chain MikroTrick. Attacks on devices whose SSH port is reachable from the internet have been running since at least 2 September, and patched releases are already available.

In short

  • Two chained flaws give administrator access to a MikroTik router over SSH with no password.
  • Attacks have been observed since 2 September; compromised routers get a new account named "ops".
  • Fixed in RouterOS 7.24.2, 7.23.4, 6.49.21 and 7.25beta3.

How the MikroTik RouterOS SSH chain works

The first flaw is an SSH authentication bypass. RouterOS matches an incoming key against an authorised RSA key by comparing the key type and the modulus, but not the exponent, and it verifies the signature using the key the client supplied. An attacker who knows a valid username and the public part of that user's RSA key can build a key with exponent one, sign the request with it and open a session as that user. No private key and no password are involved.

  1. The attacker connects to a router whose SSH service answers on the public internet.
  2. A forged RSA key passes the incomplete comparison and opens a session as an existing user.
  3. A username starting with a prohibited character slips through argument handling in the login helper.
  4. The policy mask of the session is rewritten, and the session ends up with full administrator rights.
6vulnerabilities disclosed
9.2CVSS for both chain links
2 Septemberfirst observed attacks
4patched release branches

The two links are tracked as CVE-2026-67276 (signature verification) and CVE-2026-86060 (argument handling), both rated 9.2. The remaining four cover an unauthenticated bandwidth test that leaks memory, X.509 validation, unauthenticated SSH commands and an uninitialised pointer in WebFig file authorisation.

How to tell whether your router was taken

CERT Polska published concrete indicators, and they are easy to check on the router itself.

  • Log entries: lines reading login failure for user -2 from <ip> via ssh, or a successful session shown as ssh:-2@<ip>.
  • A new account: a privileged user named ops that nobody in your team created.
  • Configuration changes: new SSH keys, scripts, schedulers, services, firewall rules, proxies, tunnels or packet sniffing settings in /system history.
  • Known addresses: connections from 82.192.72.4 or 103.102.31.18.
Worth knowing: a clean log is not proof of a clean router. CERT Polska warns that entries may have rolled over or been wiped by the attacker, so on a device that was exposed the safe assumption is compromise until the configuration has been reviewed.

If the signs are there, the advice is to take the device off the network and preserve the logs before doing anything else. A factory reset removes the attacker's account, but it also removes the evidence, and any password or key that lived on that router should be treated as known to someone else.

Changing the admin password is the step people reach for first, and on its own it fixes nothing. An account added by somebody else stays, an SSH key added to an existing user stays, and so do scripts, schedulers, firewall rules and tunnels that were written into the configuration while the attacker had administrator rights. That is why the recommendation is an audit of the whole configuration, or a rebuild from a backup made before the device was exposed.

The exposure also looks different in an office and at home. A provider or a company usually keeps management on a separate interface and notices a new account through monitoring, so the risk there is mostly the time between the disclosure and the maintenance window. A home or small-office router more often has SSH opened by hand for remote access, no monitoring behind it, and nobody who reads the log until something breaks.

Which RouterOS versions are fixed

BranchFixed version
Stable7.24.2
Long-term (7.x)7.23.4
Long-term (6.x)6.49.21
Beta7.25beta3

If updating right now is not an option, the interim measure is to stop answering strangers: disable the SSH and WebFig services or restrict them to a management address, and check that the router is not publishing them to the whole internet. Home units ship with firewall rules that block management ports from the WAN side, so the devices at risk are mainly those where somebody opened the port deliberately, often to reach the router from outside.

What it means for a home VPN

MikroTik is not only an office brand. The cheap hEX and hAP boxes are a common way to run a personal VPN endpoint at home, with WireGuard, IPsec or L2TP terminating on the router itself, and remote access over SSH is exactly why the port ends up open. When the router is the VPN server, whoever owns the router owns the tunnel: they can read what leaves the tunnel, add their own peers and watch the traffic of every device behind it. A commercial VPN app running on a laptop still encrypts that laptop's traffic to the provider, but it does not clean a router that already has somebody else's account on it.

Does a VPN protect me from this?
Not from the flaw itself. The attack targets the router, not your connection. If your VPN terminates on that same MikroTik, the tunnel is compromised together with the device.
My SSH is not reachable from the internet. Am I safe?
From this campaign, yes: the observed attacks need the SSH service to answer from a public network. Update anyway, because the same fixes cover four more flaws, including ones in WebFig and the bandwidth test.
Which RouterOS versions carry the MikroTik RouterOS SSH flaw?
Every branch before the fixed releases. The patched versions are 7.24.2 in Stable, 7.23.4 and 6.49.21 in Long-term and 7.25beta3 in Beta; anything older still answers the chain.
Is a firmware update enough after a compromise?
No. An update closes the door but leaves whatever was set up inside: accounts, keys, scripts, schedulers and firewall rules. A compromised router needs its configuration audited or rebuilt, and every credential it held rotated.

mikrotikrouteroscybersecurityinternet securitysecurityvpnpoland

Read also