What is MikroTik RouterOS?
RouterOS is the embedded operating system that powers MikroTik's widely deployed line of routers, used by ISPs, small businesses, and home users worldwide for routing, wireless, and network management. MikroTik devices are prized for their low cost and flexibility, which has made them extremely common at the network edge — and also a frequent target for internet-wide scanning, since a compromised router sits in a privileged position between a network and the internet.
Overview
CVE-2018-7445 is a stack-based buffer overflow in RouterOS's handling of SMB (Server Message Block) protocol messages, specifically in the processing of NetBIOS session request packets. A remote, unauthenticated attacker who can reach the SMB service can send a crafted session request that overflows a stack buffer, corrupting the call stack and potentially achieving arbitrary code execution on the router. With a CVSS score of 9.8 (Critical) and no authentication or user interaction required, this is one of the more severe MikroTik vulnerabilities disclosed to date.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| MikroTik RouterOS (SMB service) | Versions prior to the 2018 security releases across the 6.x branch | Patched 6.x releases published by MikroTik in 2018 |
Technical Details
The vulnerability is a classic stack buffer overflow (CWE-119): RouterOS's SMB implementation does not properly bound-check data copied from an incoming NetBIOS session request message before writing it into a fixed-size stack buffer. An attacker-controlled payload longer than the expected size overwrites adjacent stack memory, including saved return addresses, which can be leveraged to redirect execution and run attacker-supplied code. Exploitation requires only network reachability to the SMB service — no credentials and no user interaction.
Discovery
The vulnerability was identified and disclosed by researchers at Core Security, who published a technical advisory describing the SMB buffer overflow alongside MikroTik's own patched RouterOS releases.
Exploitation Context
This bug is closely associated with the exploit chain known as "Chimay Red," which was used as one of the initial infection vectors for the VPNFilter malware disclosed by Cisco Talos in May 2018. VPNFilter compromised hundreds of thousands of consumer and small-office routers and network storage devices worldwide, including many MikroTik devices, to build a multi-stage botnet capable of traffic interception, credential theft, and destructive "kill" commands. CISA added CVE-2018-7445 to the KEV catalog in September 2022 based on confirmed continued exploitation of unpatched devices.
Remediation
- Upgrade RouterOS to a version that includes the 2018 SMB security fix — check MikroTik's changelog and download the latest stable release for your hardware.
- Disable the SMB service on RouterOS devices entirely if file sharing over SMB is not required — this removes the attack surface outright.
- Never expose RouterOS management or SMB services directly to the internet; restrict access to trusted internal networks or VPN only.
- Audit existing MikroTik devices for signs of compromise (unexpected scheduler jobs, unfamiliar firewall rules, or unknown scripts), consistent with known VPNFilter indicators.
- Change default credentials and disable unused services as a general hardening baseline for all RouterOS deployments.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2018-7445 |
| Vendor / Product | MikroTik — RouterOS |
| NVD Published | 2018-03-19 |
| NVD Last Modified | 2025-11-07 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-119 find similar ↗ |
| CISA KEV Added | 2022-09-08 |
| CISA KEV Deadline | 2022-09-29 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2018-03-19 | CVE published; patched RouterOS releases made available by MikroTik |
| 2018-05-23 | Cisco Talos discloses VPNFilter malware, which used the related Chimay Red MikroTik exploit chain for initial infection |
| 2022-09-08 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-09-29 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2018-7445 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Core Security Advisory — MikroTik RouterOS SMB Buffer Overflow | Security Research |
| MikroTik RouterOS Downloads (patched releases) | Vendor Advisory |