Security Advisory

CVE-2018-7445: MikroTik RouterOS SMB Buffer Overflow (KEV)

Last updated:
  • CVE-2018-7445

CVE-2018-7445 is a stack-based buffer overflow in the SMB file-sharing service of MikroTik RouterOS: a crafted NetBIOS session request, sent before any authentication, can run code on the router. It affects all devices running RouterOS before 6.41.3. NVD scores it 9.8, CISA KEV lists it, and the fix is RouterOS 6.41.3 or later.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

65.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2018-7445 · Source: NVD

Affected components

ComponentCPEVersion range
MikroTik RouterOS SMB service (all architectures and devices)cpe:2.3:o:mikrotik:routeros:*:*:*:*:*:*:*:*Before 6.41.3, and 6.42 release candidates before 6.42rc27 (NVD lists 6.42rc2 to rc24); fixed in 6.41.3

What does this mean for affected devices?

NVD describes the flaw: "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." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and NVD CVSS v2 10.0; CISA ADP gives the same 9.8. NVD classifies it as CWE-119; the finders' advisory uses the narrower CWE-121, stack-based buffer overflow. MITRE is the CNA and the record was published on 2018-03-19 (NVD, CVE record).

Who found it and which RouterOS version fixes it?

Juan Caillava and Maximiliano Vidal of Core Security found the bug; advisory CORE-2018-0003 was published on 2018-03-15. It places the overflow in the function that parses NetBIOS names, where the first byte of the source buffer is used as the copy length into a stack buffer, and lists "All architectures and all devices running RouterOS before versions 6.41.3/6.42rc27" as vulnerable (Core Security advisory on Full Disclosure). MikroTik's RouterOS 6.41.3 changelog, dated 2018-03-08, opens with "smb - fixed buffer overflow vulnerability, everyone using this feature is urged to upgrade" (RouterOS 6.41.3 changelog). The advisory's timeline shows MikroTik confirmed on 2018-03-12 that the published version addresses the issue. NVD's CPE list covers all versions before 6.41.3 plus the 6.42 release candidates rc2 to rc24.

Is CVE-2018-7445 exploited?

Yes. CISA added it to the KEV catalog on 2022-09-08 with the required action "Apply updates per vendor instructions." (due date 2022-09-29; known ransomware campaign use: Unknown); it is still listed as of 2026-11-24 in catalog version 2026.11.23 (CISA KEV). FIRST EPSS gives 0.65828, the 99.285th percentile, in the 2026-11-23 dataset (FIRST EPSS).

What should you do?

Upgrade RouterOS to 6.41.3 or any later release. Core Security reports MikroTik's workaround for routers that cannot be updated: disable the SMB service. Only routers with SMB turned on and reachable are exposed, so also check that no file-sharing or management service answers on the WAN side (CISA BOD 23-02 guide). The coding lesson, a length byte taken from the packet and trusted for a stack copy, is covered in how to fix memory corruption in embedded firmware. Other RouterOS flaws: CVE-2018-14847 (Winbox file read, 2018), CVE-2026-67277 (bandwidth-test memory disclosure) and CVE-2026-86060 (SSH privilege escalation).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • Pre-authentication buffer overflow in the RouterOS SMB service when processing NetBIOS session requests; all devices before 6.41.3/6.42rc27; NVD Primary CVSS v3.1 9.8, CWE-119. — NVD
  • CORE-2018-0003 (2018-03-15): stack-based overflow (CWE-121) in NetBIOS name parsing; fixed in 6.41.3; workaround is disabling SMB; MikroTik confirmed the fix on 2018-03-12. — Core Security via Full Disclosure
  • RouterOS 6.41.3 (2018-Mar-08) changelog: smb - fixed buffer overflow vulnerability. — MikroTik changelog
  • In CISA KEV since 2022-09-08, due 2022-09-29, ransomware use Unknown; listed in catalog 2026.11.23. — CISA KEV
  • EPSS 0.65828 (99.285th percentile) in the 2026-11-23 dataset. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Core Security CORE-2018-0003: MikroTik RouterOS SMB buffer overflow (Full Disclosure)
  3. MikroTik RouterOS 6.41.3 changelog
  4. CVE.org record CVE-2018-7445 (CNA: MITRE)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which RouterOS version fixes CVE-2018-7445?

RouterOS 6.41.3, released on 2018-03-08, and every later release; on the 6.42 release-candidate line the fix arrived in 6.42rc27 (per MikroTik's 6.41.3 changelog, NVD and Core Security's advisory).

Is a router safe if SMB is disabled?

Disabling the SMB service is the workaround MikroTik suggested for routers that cannot be updated, since the overflow is in that service. Upgrading to 6.41.3 or later is still the fix (per Core Security's CORE-2018-0003 advisory).

Does CVE-2018-7445 need credentials?

No. The overflow happens while parsing a NetBIOS session request, before authentication, so any attacker who can reach the SMB service can trigger it. NVD scores it CVSS v3.1 9.8 (per NVD and Core Security).

Is CVE-2018-7445 exploited in the wild?

Yes. CISA added it to KEV on 2022-09-08 and it is listed in catalog version 2026.11.23; FIRST EPSS gives 0.65828, the 99.285th percentile, in the 2026-11-23 dataset (per CISA KEV and FIRST EPSS).