Remote code execution in MikroTik RouterOS

Published: 2018-03-16 | Updated: 2022-09-08
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2018-7445
Exploitation vector Local network
Public exploit Vulnerability #1 is being exploited in the wild.
Vulnerable software
MikroTik RouterOS
Hardware solutions / Routers & switches, VoIP, GSM, etc

Vendor MikroTik

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Stack-based buffer overflow

EUVDB-ID: #VU11142

Risk: Medium


CVE-ID: CVE-2018-7445

CWE-ID: CWE-121 - Stack-based buffer overflow

Exploit availability: No


The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a stack-based buffer overflow when processing NetBIOS session request messages. A remote unauthenticated attacker can send a specially crafted NetBIOS session request message with malformed NetBIOS names, trigger stack-based buffer overflow and cause denial of service conditions or execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to gain full access to the affected router but requires that SMB service is running.


Update to version 6.40.7 or 6.41.3.

Vulnerable software versions

MikroTik RouterOS: 6.41 - 6.41.2, 6.40 - 6.40.6

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

How the attacker can exploit this vulnerability?

Is there known malware, which exploits this vulnerability?