Skip to content
Topic

Code execution

Remote code execution (RCE), even as root: all dojo articles on this topic.

Image generated locally with ComfyUI from randomly selected elements. How the images are created

Illustrazione per FOISted: il jailbreak di RouterOS v6 (e perché v7 è immune)
Lab
Lab · RouterOS under the lens

FOISted: the RouterOS v6 jailbreak (and why v7 is immune)

In 2022, Margin Research presented a jailbreak for RouterOS v6 at REcon that worked on all versions from 6.34 to 6.49.6. The bug was in the www process: an IPC handler called FoisHandler took a pointer from the body of an M2 message and invoked it as a function. The protection was a policy bitmask (0x80000000) unreachable from the GUI, but bypassable by sending a raw M2 message with policy 0xFFFFFFFF. Combined with a ROP chain, it allowed arbitrary code execution. RouterOS v7 is immune: FoisHandler was removed in the architecture redesign. We verified this with strings on the www binary of v7.24.5: the string "Fois" does not appear. ---

4 min read
Illustrazione per MikroTik spegne per qualche ora i servizi web per una falla di PHP: RouterOS non è coinvoltoAdvisories
Notice · Critical PHP vulnerability

MikroTik takes web services offline for a few hours due to a PHP vulnerability: RouterOS is not affected

Today, October 21, 2026, mikrotik.com is offline: opening it displays “Service temporarily down for maintenance”. This is not a failure and not an attack on the routers. MikroTik has intentionally shut down all its PHP-based web services after the announcement of two critical PHP vulnerabilities (CVE-2026-109618 and CVE-2026-109619) that allow remote code execution. RouterOS does not use PHP: your routers are not affected and you do not need to do anything on them. You should, however, update PHP if you use it on your servers, for example for a hotspot or billing panel connected to the routers.

Critical
Illustrazione per CVE-2025-6563: XSS via parametro dst nell'hotspot MikroTikLab
Lab · CVE-2025-6563

CVE-2025-6563: XSS via dst parameter in MikroTik hotspot

We verified the presence of a reflected XSS vulnerability (CVE-2025-6563) in the hotspot component of RouterOS 7, which allows the execution of arbitrary JavaScript in the victim's browser. The proof confirmed that on versions prior to 7.19.2 both attack vectors work, while on version 7.24.5 the payload is blocked.

Illustrazione per CVE-2026-84411Security
CVE-2026-84411

Critical vulnerability in RouterOS web service

CVE-2026-84411 is a critical vulnerability (CVSS 9.8) in the RouterOS management web service that allows an unauthenticated attacker to execute arbitrary code as root or cause a denial of service. All RouterOS versions below 7.24 are affected. The immediate action is to update the firmware to version 7.24 or later and restrict access to the web service to trusted networks only.

Critical · 9.8
Illustrazione per Vulnerabilità RADVD in RouterOSSecurity
CVE-2023-32154

RADVD Vulnerability in RouterOS

CVE-2023-32154 is a remote code execution (RCE) vulnerability in the Router Advertisement Daemon (RADVD) of MikroTik RouterOS. It affects versions 6.49.7 Stable and earlier, allowing nearby network attackers to execute code with root privileges without authentication. The fixed version has not yet been announced; you must monitor official vendor announcements.

Illustrazione per CVE-2023-30799Security
CVE-2023-30799

Arbitrary code execution on RouterOS

CVE-2023-30799 is a privilege escalation vulnerability that allows an authenticated attacker with an admin account to obtain super-admin privileges and execute arbitrary code. It affects stable versions of RouterOS prior to 6.49.7 and long-term versions up to and including 6.48.6. Updating to a patched version is the primary measure to mitigate the risk.

High · 7.2
Illustrazione per CVE-2022-45315Security
CVE-2022-45315

Out-of-bounds read in SNMP on RouterOS

CVE-2022-45315 is a critical vulnerability (CVSS 9.8) that allows an authenticated attacker to execute arbitrary code via a malicious SNMP packet. It affects RouterOS versions prior to 7.6. To mitigate the risk, upgrade to a later stable version or disable the SNMP service if not required.

Critical · 9.8
Illustrazione per CVE-2022-45313Security
CVE-2022-45313

Out-of-bounds Read in the Hotspot Process

CVE-2022-45313 is an Out-of-bounds Read vulnerability in the hotspot process of RouterOS, allowing arbitrary code execution via a manipulated nova message. It affects RouterOS versions prior to 7.5. To mitigate the risk, you must update to a stable version later than 7.5 or disable the hotspot service if not in use.

High · 8.8
Illustrazione per CVE-2017-20149Security
CVE-2017-20149

Critical vulnerability in the RouterOS web server

CVE-2017-20149 is a critical vulnerability (CVSS 9.8) in the RouterOS web server that allows an unauthenticated remote user to execute arbitrary code. It affects versions prior to 6.37.5 and 6.38.5. You must immediately update the firmware to a later version to eliminate the risk.

Critical · 9.8
Illustrazione per CVE-2021-41987Security
CVE-2021-41987

Buffer overflow in the RouterOS SCEP server

CVE-2021-41987 is a critical vulnerability (CVSS 8.1) in the RouterOS SCEP server that allows remote code execution. It affects versions 6.46.8, 6.47.9, and 6.47.10. You must update the firmware to a later version not listed as vulnerable or disable the SCEP service if not in use.

High · 8.1
Illustrazione per CVE-2018-1156Security
CVE-2018-1156

Buffer overflow in the RouterOS license update interface

CVE-2018-1156 is an Out-of-bounds Write (CWE-787) vulnerability in RouterOS versions prior to 6.40.9 and 6.42.7. A remote authenticated attacker could theoretically execute arbitrary code on the system through the license update interface. To mitigate the risk, you must update the firmware to the fixed versions.

Illustrazione per CVE-2018-7445Security
CVE-2018-7445

Buffer overflow in the SMB service of RouterOS

CVE-2018-7445 is a critical vulnerability (CVSS 9.8) in the SMB service of RouterOS that allows an unauthenticated attacker to execute code. It affects all RouterOS versions prior to 6.41.3. The vulnerability is listed in the CISA KEV catalog and requires applying updates according to the vendor's instructions.

Critical · 9.8Exploited