CVEs / CVE-2018-7445
CVE-2018-7445: MikroTik RouterOS Stack-Based Buffer Overflow Vulnerability
- Known exploited in the CISA KEV catalog since 8 Sep 2022
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 65.8% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2018-7445
Summary
In MikroTik RouterOS, a stack-based buffer overflow occurs when processing NetBIOS session request messages. Remote attackers with access to the service can exploit this vulnerability and gain code execution on the system.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a n/a | n/a | — |
Exploitation
| In CISA KEV since | 8 Sep 2022 |
|---|---|
| Due date for US federal agencies | 29 Sep 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-119 |
References
- CVE-2018-7445 on NVD
- CVE-2018-7445 in the CISA KEV catalog
- https://www.coresecurity.com/core-labs/advisories/mikrotik-routeros-smb-buffer-overflow#vendor_update (cited by CISA)
- https://mikrotik.com/download (cited by CISA)
- http://seclists.org/fulldisclosure/2018/Mar/38 Exploit, Mailing List, Third Party Advisory, VDB Entry
- http://www.securityfocus.com/bid/103427 Third Party Advisory, VDB Entry
- https://www.coresecurity.com/advisories/mikrotik-routeros-smb-buffer-overflow Exploit, Third Party Advisory
- https://www.exploit-db.com/exploits/44290/ Exploit, Third Party Advisory, VDB Entry
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7445 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.