Privilege escalation to super-admin in MikroTik RouterOS

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2023-30799?

CVE-2023-30799 is a vulnerability classified as Improper Privilege Management, affecting RouterOS (affected versions: < 6.49.7 and ≤ 6.48.6). This vulnerability is rated Critical, with a CVSS score of 9.1. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

MikroTik RouterOS stable before 6.49.7 and long-term through 6.48.6 are vulnerable to a privilege escalation issue. A remote and authenticated attacker can escalate privileges from admin to super-admin on the Winbox or HTTP interface. The attacker can abuse this vulnerability to execute arbitrary code on the system.

Affected products and scope

MikroTik RouterOS stable releases prior to the patched version are affected, as are long-term support releases up to and including the last affected release. Other builds are not affected by default.

Technical details

The weakness is improper privilege management (CWE-269). An authenticated user who already holds admin-level access can exploit a flaw in the way the Winbox or HTTP interface handles privilege escalation to gain super-admin status. From that position, arbitrary code execution on the router is possible. Public detail on the exact internal mechanism is limited beyond what the advisory describes.

Exploitability

The attack is remote and requires a valid admin account, but no user interaction is needed and the attack complexity is low. A public exploit is available. There is no report of in-the-wild exploitation at the time this record was published.

Technical impact

An attacker who holds admin credentials gains super-admin access and the ability to execute arbitrary code on the router. This grants full control over routing configuration, firewall rules, network settings, and the ability to install persistent access or pivot into connected networks.

Business impact

Any organisation running affected RouterOS firmware should treat this as serious. In many deployments, admin credentials on a router are held not just by the primary network team but by support staff, contractors, or anyone granted a management login. This vulnerability means that any of those people, or anyone who has obtained such credentials, can obtain the highest level of control over the device. A compromised router sits at the network boundary and gives an attacker a persistent foothold that is difficult to evict and that can be used to pivot into internal networks.

Remediation

Upgrade to the patched release. If an immediate upgrade is not possible, restrict admin account access to the minimum set of trusted personnel, rotate admin credentials, and monitor for unauthorised privilege escalation activity on the device.

Detection

Review Winbox and HTTP interface logs for privilege escalation events, particularly cases where an admin account gains super-admin status without a corresponding administrative action. Check for unexpected configuration changes, new accounts, or code execution on routers running affected firmware. Correlate with any recent changes to admin credentials.

Sources (8)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.