MikroTrick: MikroTik Patches Six RouterOS Flaws as Exploited SSH Chain Enables Unauthenticated Router Takeover
Attackers are actively exploiting the CERT Polska-discovered 'MikroTrick' chain — CVE-2026-67276 (SSH authentication bypass) plus CVE-2026-86060 (privilege escalation), both CVSS 9.2 — to fully hijack internet-exposed MikroTik routers; fixes shipped in…
MikroTik has patched six RouterOS vulnerabilities found by CERT Polska, including the actively exploited 'MikroTrick' chain affecting devices with SSH exposed to the internet. The chain combines CVE-2026-67276 (CVSS 9.2, CWE-347 improper cryptographic signature verification), in which the SSH server only compares RSA key moduli, letting an attacker who knows a valid username and public key modulus open an SSH command channel as that user without the private key, with CVE-2026-86060 (CVSS 9.2, CWE-88 argument injection), which grants full administrative (root) privileges via specially crafted usernames containing special characters. A third flaw, CVE-2026-67277 (CVSS 8.8, CWE-306 missing authentication) in the bandwidth-test (btest) service, allows unauthenticated attackers to leak kernel memory or crash devices. SecurityWeek reports three additional flaws were fixed: CVE-2026-67278, CVE-2026-67279, and CVE-2026-67281, affecting the SSH server/client, bandwidth-test service, X.509 handling, and WebFig. Fixes shipped on September 3, 2026 in RouterOS 7.25beta3, 7.24.2 (Stable), 7.23.4 (Long-Term), and 6.49.21, and the patch adds a startup configuration scan that disables unauthorized entries and sets a 'Flagged' status; however, MikroTik notes Flagged status signals possible compromise but does not guarantee a device is clean, and SANS ISC advises administrators to assume compromise. CERT Polska confirmed exploitation since September 2, with attackers creating a privileged 'ops' account for persistence that survives patching, from IP addresses 82.192.72.4 and 103.102.31.18. Shadowserver measured approximately 122,500 MikroTik devices with internet-reachable SSH as of September 5 (SecurityWeek reported the figure as over 120,000), concentrated in Brazil, the US, and Indonesia. Compromised edge routers enable DNS hijacking, traffic interception, remote-access tunnels, firewall and routing changes, and use as pivots into internal networks. On September 10, 2026, CISA added CVE-2026-67277 and CVE-2026-86060 to its Known Exploited Vulnerabilities catalog, giving federal agencies until September 13 to apply mitigations, and designated CVE-2026-86060 as requiring forensic triage under Binding Operational Directive 26-04. The Canadian Centre for Cyber Security issued advisories AV26-887 and AL26-020 urging immediate updates, prioritization of internet-exposed SSH systems, and log review. Recommended mitigations include restricting SSH to trusted IPs or VPN,…
- Six RouterOS vulnerabilities discovered by CERT Polska; fixes released September 3, 2026 in RouterOS 7.25beta3, 7.24.2, 7.23.4, and 6.49.21.
- MikroTrick chain: CVE-2026-67276 (CVSS 9.2, CWE-347) SSH authentication bypass via incomplete RSA public-key validation — attacker needs only a username and the public key modulus, not the private key.
- CVE-2026-86060 (CVSS 9.2, CWE-88 argument injection) escalates to full administrative/root privileges via specially crafted usernames.
- CVE-2026-67277 (CVSS 8.8, CWE-306) in the unauthenticated bandwidth-test service enables kernel memory disclosure or device crashes.
- Additional fixed CVEs per SecurityWeek: CVE-2026-67278, CVE-2026-67279, CVE-2026-67281.
- Exploitation confirmed by CERT Polska since September 2; attackers created a privileged 'ops' account for post-patch persistence from IPs 82.192.72.4 and 103.102.31.18.
- Shadowserver counted ~122,500 SSH-exposed MikroTik devices as of September 5, 2026 (SecurityWeek reported 'over 120,000'), concentrated in Brazil, the US, and Indonesia.
- New patch feature scans configuration at startup, disables suspicious entries, and sets a 'Flagged' marker; MikroTik cautions Flagged status does not guarantee a device is clean.
Coverage timelineoldest first · each row is one article
- · 9d agoCritical MikroTik Vulnerability - Patch Now, (Sun, Sep 6th)
SANS Internet Storm Center· 82
MikroTik patched a critical SSH authentication bypass already exploited in the wild; attackers add accounts to affected routers for post-patch persistence.
Vulnerabilities in this storyAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2026-67276 | SSH RSA Authorized-Key Bypass in MikroTik RouterOS 7.x MikroTik RouterOS 7.x fails to compare the complete RSA public key when matching an SSH authentication attempt against an authorized user key, checking the key type and modulus but omitting the exponent. Because RouterOS verifies the signature against the client-supplied key, an attacker who knows the modulus of an authorized RSA key can present a key with exponent 1 and a forged signature and be accepted as that user without possessing the private key. Successful exploitation opens an SSH command channel as the target user, giving the attacker control of the router without a password or key. Only the RouterOS 7.x branch is affected, with fixes released in 7.23.4 (Long-term) and 7.24.2 (Stable). A public proof-of-concept is available and related reporting describes active campaigns hijacking MikroTik routers using chained RouterOS flaws, though this CVE is not in CISA KEV and its 30-day EPSS probability is low (0.2%). Do: Upgrade affected devices to RouterOS 7.23.4 (Long-term) or 7.24.2 (Stable) or later. Until patched, restrict SSH access to trusted management networks and, if feasible, remove or replace RSA authorized keys with other key types. Check devices for signs of compromise highlighted in recent reporting, such as an unexpected SSH user named '-2'. | 9.2 | <1% |
| mass~1M RouterOS 7.x devices (installed base in the millions; hundreds of thousands internet-exposed, with SSH a standard management service) | ||
| CVE-2026-86060 +1 in the same advisory: …67277 | Argument-Injection Flaw in MikroTik RouterOS SSH Login Enables Privilege Escalation CVE-2026-86060 is an argument-injection flaw (CWE-88) in MikroTik RouterOS's SSH login path: when a login supplies a username beginning with a prohibited character, the RouterOS login helper mishandles the argument, allowing the trusted RouterOS policy mask to be changed and privileges to be escalated. An unauthenticated attacker only needs the ability to reach the router's SSH service, since exploitation happens during the SSH login process itself. By altering the policy mask the attacker gains elevated rights on the device, and news reports indicate attackers have used this technique — including logins with usernames such as '-2' — as part of chains that take over routers without needing a password. Any RouterOS deployment running versions before the fixes (6.49.21 Long-term, 7.23.4 Long-term, 7.24.2 Stable) with SSH enabled or reachable is affected, with internet-exposed SSH at highest risk. Multiple outlets report the RouterOS flaws are being actively exploited in the wild, although no public proof-of-concept is known and the flaw is not yet in CISA KEV. Do: Upgrade RouterOS to 6.49.21 (Long-term), 7.23.4 (Long-term) or 7.24.2 (Stable) as applicable. Until patched, restrict SSH (TCP 22) to trusted management networks or disable the SSH service if unused, and review authentication logs and user/group policy settings for tampering — reports indicate attackers log in with usernames beginning with '-' (e.g., '-2'). | 9.2 group max | 1% | KEV PoC ×2 |
| mass≈1M+ devices: hundreds of thousands to over a million RouterOS devices are routinely observed internet-exposed, and far more expose SSH to the LAN | |
| CVE-2026-67278 | X.509 Signature Forgery Enables TLS Impersonation in MikroTik RouterOS 7.x MikroTik RouterOS 7.x improperly verifies RSA/PKCS#1 v1.5 signatures when validating X.509 certificate chains, accepting malformed signatures (CWE-347, Improper Verification of Cryptographic Signature). Because the RouterOS trust store includes a root CA whose public key uses the small exponent e=3, an attacker who can control or redirect one of the router's outbound TLS connections (for example via a network man-in-the-middle position, DNS hijacking, or a compromised upstream path) can forge an intermediate CA signed with the root's public key, without ever holding its private key, and mint trusted certificates for arbitrary hostnames. This lets the attacker impersonate TLS servers the router connects to, with low confidentiality and integrity impact per the CVSS 4.0 score of 6.3 (medium), which reflects the network vector, no privileges required, but a high attack requirement of holding such a network position. Any deployment running RouterOS 7.x before 7.23.4 (Long-term) or 7.24.2 (Stable) is affected, spanning home/SOHO, enterprise, and ISP/WISP infrastructure; the 6.x branch is not listed as affected. No public proof-of-concept is known, the issue is not in CISA's KEV, and EPSS gives a 0.2% probability of exploitation within 30 days, although related headlines note other MikroTik flaws have recently been chained to hack routers. Do: Upgrade RouterOS 7.x to 7.23.4 (Long-term track) or 7.24.2 (Stable track). Until patched, reduce the chance an attacker can sit on the router's outbound TLS path by hardening DNS resolvers, avoiding untrusted upstream networks, and restricting management-plane exposure, since exploitation requires controlling or redirecting an outbound connection. Given other RouterOS flaws have recently been chained in router hijacks, prioritize patching internet-exposed and ISP/WISP infrastructure devices. | 6.3 | <1% |
| massseveral million deployed devices worldwide, with hundreds of thousands of RouterOS 7.x units visible on the public internet | ||
| CVE-2026-67279 | Unauthenticated SSH Session Bypass Enables File Writes in MikroTik RouterOS CVE-2026-67279 is an authentication-ordering flaw (CWE-841) in the SSH server of MikroTik RouterOS: after a client-requested SSH rekey, the server enters the connection protocol even though user authentication was never attempted. An unauthenticated SSH client can therefore open a session channel and send an exec request, and on affected builds the server dispatches the command without any credentials. This lets the attacker create, overwrite, and reconstruct files in the RouterOS managed file namespace, including support files that contain configuration and diagnostic data. Any MikroTik device running RouterOS builds older than the fixed releases is affected, although remote exploitation requires the SSH service to be reachable by the attacker. No public proof-of-concept is known, the issue is not in CISA's KEV catalog, and EPSS estimates a 0.4% probability of exploitation in the next 30 days, so no exploitation is currently known. Do: Upgrade RouterOS to 6.49.21 (Long-term v6), 7.23.4 (Long-term v7), or 7.24.2 (Stable). Until patched, restrict SSH access to trusted management networks/VPN or disable the SSH service where it is not needed. Review the RouterOS file list and SSH logs for unexpected or reconstructed files and session activity, since attackers have recently chained multiple MikroTik flaws against routers. | 6.9 | <1% |
| massmillions of installed RouterOS devices, with plausibly hundreds of thousands of SSH-exposed systems | ||
| CVE-2026-67281 | Unauthenticated Arbitrary File Read in MikroTik RouterOS WebFig (CVE-2026-67281) RouterOS WebFig's /jsproxy handler contains an unauthenticated file-read flaw: a newly allocated session keeps a stale, uninitialized principal pointer that is later used to authorize file access (CWE-824), combined with a path-traversal issue (CWE-22). An unauthenticated attacker who can reach the web interface first shapes the heap allocator so the uninitialized pointer resolves with sufficient rights, then submits an encrypted URI containing parent-directory components to escape the WebFig file namespace. This lets the attacker read root-owned files on the router, including configuration stores that contain credentials, which could enable further compromise. Only MikroTik RouterOS 7.x before 7.23.4 (Long-term) and 7.24.2 (Stable) is affected. No public proof-of-concept, KEV listing, or confirmed in-the-wild exploitation of this flaw is known (EPSS ~0.4%), although recent reporting notes MikroTik patches being chained in router-hijack campaigns generally. Do: Upgrade affected routers to RouterOS 7.23.4 (Long-term) or 7.24.2 (Stable). Until patched, restrict the www/WebFig service (and /jsproxy) to trusted management networks or VPN access and firewall WAN access to the router's web interface. Check logs for unauthenticated requests to /jsproxy containing traversal patterns, and rotate credentials found in router configuration stores if unexplained access is observed. | 8.7 | <1% |
| masson the order of 10^5-10^6 (likely hundreds of thousands) of internet-exposed MikroTik RouterOS devices, of which the vulnerable pre-fix 7.x subset with WebFig… |