MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.
Summary
MikroTik RouterOS before 7.23.4 (long-term) and 7.24.2 (stable) contains a stack-based buffer overflow vulnerability in the mtget binary's TFTP RRQ builder function that allows authenticated users to crash the mtget worker process by supplying a URL path of 507 bytes or more to the /tool fetch command; the first write outside the 528-byte buffer occurs at 505 bytes. Attackers can trigger the overflow by issuing a fetch command with a crafted tftp:// URL path, which causes an unbounded rep movsb instruction to overwrite saved registers at a deterministic offset, crashing the process without requiring a reachable TFTP server or elevated privileges beyond read-only group membership. On older RouterOS versions, this overflow is not limited to crashing the process: the deterministic overwrite of saved registers is exploitable to achieve persistent privilege escalation on the device. On versions with intact exploit mitigations, the impact is limited to a crash of the mtget worker process.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MikroTik | RouterOS | 6.0.0 to before 6.49.21; 7.0.0 to before 7.23.4; 7.24.0 to before 7.24.2 | 6.49.21, 7.23.4, 7.24.2 | Patch available | CNA |
- RouterOS VendorMikroTik Affected 6.0.0 to before 6.49.21; 7.0.0 to before 7.23.4; 7.24.0 to before 7.24.2 Fixed in 6.49.21, 7.23.4, 7.24.2 Patch available CNA
Remediation
- Fix · CNA RouterOS (MikroTik) Fixed in 6.49.21, 7.23.4, 7.24.2
Timeline
- 2026-10-02 Threatist record created from CVE-2026-89020
- 2026-10-03 Alias added: GHSA-66qh-8rrp-pqjv
- 2026-11-06 Title updated · CNA
- 2026-11-06 CVSS score changed · CNA
- 2026-11-06 Fix available: MikroTik/[email protected] · CNA
- 2026-11-06 3 new references · CNA
References
More MikroTik vulnerabilities
- TI-2018-05369 A buffer overflow was found in the MikroTik RouterOS SMB service when processing NetBIOS… KEVCVSS 3.1CRITICAL 9.8
- TI-2026-58872 SSH session privilege manipulation via a crafted username in Mikrotik RouterOS KEVCVSS 4.0CRITICAL 9.2
- TI-2018-10669 MikroTik RouterOS through 6.42 allows unauthenticated remote attackers to read arbitrary… KEVCVSS 3.1CRITICAL 9.1
- TI-2026-47574 Kernel memory disclosure and denial of service in MikroTik RouterOS btest service KEVCVSS 4.0HIGH 8.8
- TI-2026-47576 SSH Pre-Authentication Rekey State Bypass in MikroTik RouterOS KEVCVSS 4.0MEDIUM 6.9
- TI-2022-22302 Out-of-bounds read in MicroTik RouterOS CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-89020 · CVE Program
- CVE-2026-89020 · NVD
- FIRST EPSS
- GHSA-66qh-8rrp-pqjv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences