MikroTik RouterOS
MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation
Edge device · Router / network deviceknown edge product: MikroTik RouterOS MikroTik RouterOS Stack Buffer Overflow (high confidence)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.0.0, < 6.49.21
- >= 7.0.0, < 7.23.4
- >= 7.24.0, < 7.24.2
Fixed in 6.49.21, 7.23.4, 7.24.2
Mitigation
Upgrade RouterOS to 6.49.21 or 7.23.4 or 7.24.2 or later.
References
- Patch forum.mikrotik.com/t/7-24-2-stable-is-released/272800
- Patch forum.mikrotik.com/t/7-23-4-long-term-is-released/2728…
- Patch forum.mikrotik.com/t/6-49-21-long-term-is-released/272…
1 more
- Vendor advisory mikrotik.com/supportsec/cve-2026-89020
Timeline
Days relative to CVE publicationFirst public PoC 46 days after publication; not in CISA KEV. First PoC: davtur19/PoC-CVE-2026-89020-PrivEsc (created 30 Oct 2026, found by us: 14 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| davtur19/PoC-CVE-2026-89020-PrivEsc | 30 Oct 2026 +46 d | 14 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | Researcher Disclosure | unknown | 14 Nov 2026 |