MikroTik Winbox (CVE-2018-14847): the bug that turned routers into botnets

A Winbox flaw let attackers download the router's user database. Years later, unpatched routers were still being hijacked for cryptomining and botnets.

Publicly disclosed: 23 April 2018

In April 2018 MikroTik released RouterOS updates for a vulnerability in the Winbox management service. A specially crafted request let an attacker read files from the router without logging in — including the user database, from which administrator passwords could be recovered. Hundreds of thousands of routers with Winbox open to the internet were then hijacked: traffic was redirected, cryptomining scripts were injected into web pages and routers were added to botnets.

CVESeverityAffectedFixed in
CVE-2018-14847Critical (directory traversal, credential theft)RouterOS up to 6.42 (current) and 6.40.7 (bugfix)6.42.1, 6.40.8 and later

Why it is still relevant

Many routers were never updated, and others were updated without changing passwords — so attackers kept access. The same pattern repeated with the RouterOS SSH and WebFig flaws of 2026.

What to do

  1. Update RouterOS and RouterBOOT.
  2. Close Winbox, SSH and WebFig to the internet; manage only from LAN or VPN.
  3. After updating a router that was exposed, change all passwords and check for unknown users, scheduler scripts, files and proxy settings.
  4. Follow our step-by-step MikroTik baseline guide.

An update closes the hole. Only a password change closes the door the attacker already used.

Sources: MikroTik blog, NVD CVE-2018-14847.

Need help with this? Contact CySec for a free consultation.


All articles

Need help with this?

Our engineers can review your current setup and propose concrete improvements.