CVE-2018-7445: MikroTik RouterOS Stack-Based Buffer Overflow
MikroTik RouterOS · listed in the CISA catalog of actively exploited vulnerabilities since 2022-09-08.
- CVSS v3.1 (CISA ADP)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 66%
- higher than 99.2% of all CVEs
- Added to CISA KEV
- 2022-09-08
- US federal due date 2022-09-29
- Automatable (CISA SSVC)
- yes
- technical impact: total
CVE-2018-7445 explained
CVE-2018-7445 is a stack-based buffer overflow in the SMB service of MikroTik RouterOS, triggered when the service processes NetBIOS session request messages. The overflow happens before authentication, so an unauthenticated remote attacker with access to the service can execute code on the device. CISA lists it as known to be exploited.
Impact
An attacker who can reach the RouterOS SMB service over the network can run code on the device without credentials or user interaction. CISA rates the technical impact as total, meaning full control of the device, and considers exploitation automatable at scale. Confidentiality, integrity and availability are all at high risk. Whether it has been used in ransomware campaigns is unknown.
Who is affected
The CVE record lists no structured affected or fixed versions for MikroTik RouterOS. Its description states that all architectures and all devices running RouterOS before versions 6.41.3/6.42rc27 are vulnerable. The structured data in the record names no fixed version; consult the MikroTik advisory to confirm which release to install.
Written with AI from the data on this page and checked against it automatically.
Official 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.
CISA required action: Apply updates per vendor instructions.
CISA notes
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: mikrotik.com/download
- CISA's deadline for US federal agencies: 2022-09-29 (passed) – a useful benchmark for everyone else, too.
What to do
- Update RouterOS following MikroTik's instructions; the description names
6.41.3/6.42rc27as the versions before which devices are vulnerable. - Disable the SMB service on RouterOS devices where it is not needed.
- Restrict network access to the SMB service so only trusted hosts can reach it, and never expose it to the internet.
- Check devices that ran vulnerable versions for signs of compromise, such as unexpected configuration changes or unknown accounts.
- Follow CISA's required action: apply updates per vendor instructions.
The CVE record's structured data names no fixed version, although the description indicates devices before 6.41.3/6.42rc27 are vulnerable. Follow the MikroTik advisory and CISA's required action to apply updates per vendor instructions. Until updated, disable the SMB service or block access to it from untrusted networks.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Questions about CVE-2018-7445
- Does an attacker need credentials to exploit CVE-2018-7445?
- No. The overflow occurs before authentication, so an unauthenticated remote attacker with network access to the SMB service can exploit it and gain code execution.
- Is this vulnerability being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-09-08, with a US federal due date of 2022-09-29. Known ransomware use is listed as unknown.
- Are only some RouterOS hardware models affected?
- No. The description states that all architectures and all devices running RouterOS before versions
6.41.3/6.42rc27are vulnerable.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.