#VU11142 Stack-based buffer overflow in MikroTik RouterOS


Published: 2018-03-16 | Updated: 2022-09-08

Vulnerability identifier: #VU11142

Vulnerability risk: Medium

CVSSv3.1: 8.6 [CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H/RL:O/RC:C]

CVE-ID: CVE-2018-7445

CWE-ID: CWE-121

Exploitation vector: Local network

Exploit availability: No

Vulnerable software:
MikroTik RouterOS
Hardware solutions / Routers & switches, VoIP, GSM, etc

Vendor: MikroTik

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.

Mitigation
Update to version 6.40.7 or 6.41.3.

Vulnerable software versions

MikroTik RouterOS: 6.41 - 6.41.2, 6.40 - 6.40.6


External links
http://www.coresecurity.com/advisories/mikrotik-routeros-smb-buffer-overflow


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the local network (LAN).

Is there known malware, which exploits this vulnerability?

Yes. This vulnerability is being exploited in the wild.


Latest bulletins with this vulnerability