Skip to content
Threat Feed
low advisory

MikroTik RouterOS: Persistent Privilege Escalation via mtget Stack Overflow (CVE-2026-89020)

An authenticated, low-privileged user can trigger a stack-based buffer overflow in the RouterOS mtget binary via a crafted TFTP fetch request to gain persistent administrative privileges.

CVE search metadata

CVE search record: CVE-2026-89020. Severity: medium. CVSS: 4.3. EPSS: 0.49%. KEV: no. Product: RouterOS (< 6.49.21), RouterOS (7.23.0 - 7.23.3). Brief: MikroTik RouterOS: Persistent Privilege Escalation via mtget Stack Overflow (CVE-2026-89020). Brief link: https://feed.craftedsignal.io/briefs/2026-10-mikrotik-routeros-mtget-overflow/

Triage facts

Revision 1
Applicability
RouterOS (< 6.49.21), RouterOS (7.23.0 - 7.23.3)
Evidence
Unknown
Severity
Low
Action
Elevated
Sources
3 public sources
Freshness
Revision 1Oct 30, 23:04 UTC
Vulnerabilities
1 CVE
Source quality
A1Likely

A stack-based buffer overflow vulnerability (CVE-2026-89020) exists in the 'mtget' binary of MikroTik RouterOS within the TFTP request (RRQ) builder. Authenticated, low-privileged users can exploit this by issuing a maliciously crafted '/tool fetch' command with an excessively long tftp:// URL path. This allows for the overwriting of registers and the modification of the system's group policy configuration file ('/rw/store/group.dat'). Consequently, accounts with read-only access can be promoted to full-privileged status, with the configuration changes persisting across device reboots.

Attack Chain

  1. Authenticated user identifies an unpatched RouterOS instance.
  2. User initiates a loopback TFTP fetch command using '/tool fetch'.
  3. User provides a crafted, over-long (4094 B) tftp:// URL path as the source-path parameter.
  4. The mtget binary performs an unbounded memory copy, triggering a stack overflow.
  5. The overflow overwrites saved registers, allowing the attacker to redirect execution.
  6. The process modifies '/rw/store/group.dat', altering policy definitions to grant full privileges to the 'read' group.
  7. The device reboot process loads the corrupted group file, establishing persistent administrative access for the attacker.

Impact

Successful exploitation results in full administrative control over the affected network appliance. The change to the group policy file is persistent and survives device reboots, potentially leading to long-term unauthorized access and control of the network infrastructure.

Recommendation

  • Upgrade RouterOS to version 6.49.21 or later, or 7.23.4 or later, to receive the fix for CVE-2026-89020.
  • Audit existing RouterOS instances for unauthorized modifications to group policies using 'group print detail'.
  • Restrict access to the '/tool fetch' command and TFTP functionality to authorized administrative users only.
  • Implement network-level segmentation to prevent low-privileged users from reaching sensitive device management interfaces.

Immediate actions

Patch all vulnerable RouterOS devices to fixed versions 6.49.21 or 7.23.4.

IT Operations 48h

Threat Hunt

Monitor for suspicious use of the /tool fetch command with overly long URL paths.

T1068 high high confidence hunt now

Data: RouterOS terminal audit logs (if enabled), Remote management command history

Mitigations

Upgrade RouterOS firmware to version 6.49.21 or 7.23.4.

immediate IT Operations

CVE-2026-89020