Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MikroTik | RouterOS | 6.0.0 – < 6.49.21, 7.0.0 – < 7.23.4, 7.24.0 – < 7.24.2 | 6.49.21 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
davtur19/PoC-CVE-2026-89020-PrivEsc ★ 0 · Oct 30, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- WID-SEC-2026-3366 MikroTik RouterOS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 14, 2026
References
- 7.24.2 Release Notes patch release-notes
- 7.23.4 Release Notes release-notes patch
- https://www.vulncheck.com/advisories/mikrotik-routeros-stack-buffer-overflow-via-tftp-url-path third-party-advisory
- 6.49.21 Release Notes release-notes patch
- MikroTik Security Advisory vendor-advisory
- Researcher Disclosure technical-description exploit