Skip to content
RCE Write-up Advanced

RCE on MikroTik routers with IPv6 RA enabled

A vulnerability in MikroTik RouterOS allows network-adjacent attackers to execute arbitrary code when IPv6 router advertisement receiver functionality is enabled. Authentication is not required to exploit this vulnerability.

blog.mikrotik.com

Published on blog.mikrotik.com

On 10/05/2023 (May 10th, 2023) MikroTik received information about a new vulnerability, which is assigned the ID CVE-2023-32154. The report stated, that vendor (MikroTik) was contacted in December, but we did not find record of such communication.

The author, on blog.mikrotik.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a flaw in how RouterOS processes IPv6 router advertisement messages when the device is configured to accept them.

Impact

A network-adjacent attacker could execute arbitrary code on the router without authentication, but only if the vulnerable IPv6 setting is enabled.

What the attacker needed

IPv6 RA receiver enabled; network-adjacent attacker

The fix

The issue was fixed by upgrading to RouterOS 7.9.1, 6.49.8, 6.48.7, or 7.10beta8, or by disabling IPv6 advertisements.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a security flaw in MikroTik routers that lets someone on the same network run their own code on the router without needing a password. It only affects routers that have a specific IPv6 setting turned on, which is uncommon.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.