CVE-2026-89020: MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation
High 8.7 EPSS 0.6% MikroTik RouterOS
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.
- CVE-2026-89020CVE identifier
- 8.7CVSS 4.0 base score (high)
- 0.6%EPSS: chance of exploitation in the next 30 days (higher than 47% of CVEs)
- 2026-09-14published
What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms
What to do now
- Check whether you run MikroTik RouterOS and which version (commands below).
- Install the fixed version for your system: see “Patch it” below.
- The router reboots to finish the update; afterwards run /system routerboard upgrade and reboot again if the RouterBOARD firmware changed.
Affected and fixed versions
Affected:
- MikroTik RouterOS 6.0.0 to before 6.49.21
- MikroTik RouterOS 7.0.0 to before 7.23.4
- MikroTik RouterOS 7.24.0 to before 7.24.2
Patch it
Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.
Built from source
RouterOS: /system package update check-for-updates, then /system package update installGeneral update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.
Sources
- https://forum.mikrotik.com/t/7-24-2-stable-is-released/272800
- https://forum.mikrotik.com/t/7-23-4-long-term-is-released/272801
- https://www.vulncheck.com/advisories/mikrotik-routeros-stack-buffer-overflow-via-tftp-url-path
- https://forum.mikrotik.com/t/6-49-21-long-term-is-released/272802
- https://mikrotik.com/supportsec/cve-2026-89020/
- https://gitlab.com/sys65535/CVE-2026-89020-privesc-research
- CVE-2026-89020 on CVE.org
- CVE-2026-89020 on NVD
Page generated automatically from official sources on 2026-11-22 17:19 UTC. Always confirm with your vendor's advisory.