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
- Authenticated user identifies an unpatched RouterOS instance.
- User initiates a loopback TFTP fetch command using '/tool fetch'.
- User provides a crafted, over-long (4094 B) tftp:// URL path as the source-path parameter.
- The mtget binary performs an unbounded memory copy, triggering a stack overflow.
- The overflow overwrites saved registers, allowing the attacker to redirect execution.
- The process modifies '/rw/store/group.dat', altering policy definitions to grant full privileges to the 'read' group.
- 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.
Threat Hunt
Monitor for suspicious use of the /tool fetch command with overly long URL paths.
Data: RouterOS terminal audit logs (if enabled), Remote management command history
Mitigations
Upgrade RouterOS firmware to version 6.49.21 or 7.23.4.
CVE-2026-89020