← Vulnerability feed

Vulnerability record · CVE-2018-7445 · published 19 March 2018

CVE-2018-7445: MikroTik RouterOS SMB pre-auth buffer overflow enabling code execution

Mikrotik · Routeros

MikroTik RouterOS contains a stack-based buffer overflow in its SMB service when handling NetBIOS session request messages. The overflow occurs before authentication, so any remote party that can reach the SMB service can attempt to corrupt memory and execute code. All architectures and devices running RouterOS before 6.41.3/6.42rc27 are affected.

9.8 CVSS 3.1 Critical CISA KEV since 8 Sep 2022 EPSS 61% · top 0.9% CWE-119 · Memory buffer overflow
9.8CVSS 3.1 base score, v2 10.0
61%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
1Affected product versions listed by NVD
9References, 6 tagged exploit
17 Jun 2026Last modified by NVD

Description

A buffer overflow was found in the MikroTik RouterOS SMB service when processing NetBIOS session request messages. Remote attackers with access to the service can exploit this vulnerability and gain code execution on the system. The overflow occurs before authentication takes place, so it is possible for an unauthenticated remote attacker to exploit it. All architectures and all devices running RouterOS before versions 6.41.3/6.42rc27 are vulnerable.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

critical priorityPre-auth remote code execution with a CVSS of 9.8, public exploit code and KEV listing makes this an urgent patch target.

What it is

MikroTik RouterOS contains a stack-based buffer overflow in its SMB service when handling NetBIOS session request messages. The overflow occurs before authentication, so any remote party that can reach the SMB service can attempt to corrupt memory and execute code. All architectures and devices running RouterOS before 6.41.3/6.42rc27 are affected.

Impact

An unauthenticated remote attacker can achieve code execution on the router, giving full control of the device, its traffic and its credentials. Because the flaw is pre-auth, no valid account is needed.

Attack surface

Reachable over the network via the SMB service (NetBIOS session request handling); CVSS vector AV:N/AC:L/PR:N/UI:N confirms no authentication and no user interaction. Exposure requires the SMB service to be reachable from the attacker's network position.

Exploitation

Listed in CISA KEV since 2022-09-08 with a required action to apply vendor updates, and EPSS 30-day probability is 0.608 (99.1st percentile). Multiple references are tagged Exploit, including public advisories and an Exploit-DB entry, so working exploit code is publicly available.

What to do

  • Upgrade RouterOS to 6.41.3/6.42rc27 or later as instructed by the vendor.
  • If SMB is not required, disable the SMB service and block TCP/445 and NetBIOS ports at the network edge.
  • Restrict management and SMB access to trusted management networks only; do not expose the service to the internet.
  • Audit RouterOS devices for unauthorized configuration changes or persistence after any suspected exposure.
  • Track KEV remediation deadlines and verify patched firmware versions across the fleet.

Detection

  • Monitor for unexpected connections to TCP/445 or NetBIOS ports on RouterOS devices from untrusted sources.
  • Alert on RouterOS SMB service crashes, reboots or abnormal process behavior that could indicate memory corruption attempts.
  • Review device logs and configuration diffs for unauthorized changes, new users or scheduled tasks.
  • Use network flow data to identify scanning or exploit traffic targeting SMB on MikroTik devices.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2018-7445 to the Known Exploited Vulnerabilities catalog on 8 September 2022 as "MikroTik RouterOS Stack-Based Buffer Overflow Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 29 September 2022.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://seclists.org/fulldisclosure/2018/Mar/38 ExploitMailing ListThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/103427 Third Party AdvisoryVDB Entry
https://www.coresecurity.com/advisories/mikrotik-routeros-smb-buffer-overflow ExploitThird Party Advisory
https://www.exploit-db.com/exploits/44290/ ExploitThird Party AdvisoryVDB Entry
http://seclists.org/fulldisclosure/2018/Mar/38 ExploitMailing ListThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/103427 Third Party AdvisoryVDB Entry
https://www.coresecurity.com/advisories/mikrotik-routeros-smb-buffer-overflow ExploitThird Party Advisory
https://www.exploit-db.com/exploits/44290/ ExploitThird Party AdvisoryVDB Entry
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7445 US Government Resource

Track CVE-2018-7445 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.2CVE-2026-86060MikroTik RouterOS SSH login argument injection privilege escalationRouterOS mishandles arguments in the SSH login path when a username begins with a prohibited character, allowing the trusted policy mask to be altere…KEVEPSS 1.8%analysed9.1CVE-2018-14847MikroTik RouterOS WinBox directory traversal allows file read and writeMikroTik RouterOS through 6.42 contains a directory traversal flaw in the WinBox interface. Unauthenticated remote attackers can read arbitrary files…KEVEPSS 96%analysed8.8CVE-2026-67277MikroTik RouterOS btest missing authentication leaks kernel memory and crashes kernelRouterOS accepts a "related" btest connection before the primary session is authenticated, letting an unauthenticated client start an IPv4 UDP test. …KEVEPSS 1.6%analysed6.9CVE-2026-67279Mikrotik routeros vulnerabilityRouterOS SSH enters the connection protocol after a client-requested rekey even though user authentication was never attempted, allowing an unauthent…KEVEPSS 1.0%9.8CVE-2022-45315Mikrotik routeros out-of-bounds read vulnerabilityMikrotik RouterOs before stable v7.6 was discovered to contain an out-of-bounds read in the snmp process. This vulnerability allows authenticated att…EPSS 1.3%9.8CVE-2017-20149Mikrotik routeros out-of-bounds write vulnerabilityThe Mikrotik RouterOS web server allows memory corruption in releases before Stable 6.38.5 and Long-term 6.37.5, aka Chimay-Red. A remote and unauthe…EPSS 2.0%9.8CVE-2022-34960Mikrotik routeros link following vulnerabilityThe container package in MikroTik RouterOS 7.4beta4 allows an attacker to create mount points pointing to symbolic links, which resolve to locations …EPSS 1.5%9.2CVE-2026-67276Mikrotik routeros improper verification of cryptographic signature vulnerabilityRouterOS does not compare the complete RSA public key when matching an SSH authentication request to an authorized user key, checking the key type an…EPSS 6.5%

Source: NIST National Vulnerability Database (record CVE-2018-7445), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.