Stack-based buffer overflow in MikroTik RouterOS - CVE-2018-7445
Published: March 16, 2018 / Updated: September 8, 2022
Vulnerability identifier: #VU11142
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Green
CVE-ID: CVE-2018-7445
CWE-ID: CWE-121
Exploitation vector: Adjecent network
Exploit availability:
The vulnerability is being exploited in the wild
Vendor: MikroTik
Affected software:
MikroTik RouterOS
MikroTik RouterOS
Detailed vulnerability description
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.
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.
How to mitigate CVE-2018-7445
Update to version 6.40.7 or 6.41.3.