CVE-2026-89020
MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation
Mitigation
- Upgrade RouterOS to 7.24.2 or later.
Who should check
- Anyone running MikroTik RouterOS >= 6.0.0, < 6.49.21; >= 7.0.0, < 7.23.4; >= 7.24.0, < 7.24.2
Vulnerability facts
- Affected
- MikroTik RouterOS >= 6.0.0, < 6.49.21; >= 7.0.0, < 7.23.4; >= 7.24.0, < 7.24.2
- Fixed in
- MikroTik RouterOS 6.49.21, MikroTik RouterOS 7.23.4, MikroTik RouterOS 7.24.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 8.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
- CWE
- CWE-121
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| MikroTik RouterOS | >= 6.0.0, < 6.49.21; >= 7.0.0, < 7.23.4; >= 7.24.0, < 7.24.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-89020. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-89020.md Affected: MikroTik RouterOS >= 6.0.0, < 6.49.21; >= 7.0.0, < 7.23.4; >= 7.24.0, < 7.24.2 Fixed in: MikroTik RouterOS 6.49.21, MikroTik RouterOS 7.23.4, MikroTik RouterOS 7.24.2 Steps: 1. Search this machine and project for MikroTik RouterOS: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
FAQ
Is CVE-2026-89020 being exploited?
There is no confirmed exploitation: CVE-2026-89020 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-89020?
High: CVSS 8.7 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-89020?
MikroTik RouterOS >= 6.0.0, < 6.49.21; >= 7.0.0, < 7.23.4; >= 7.24.0, < 7.24.2.
Is there a fix for CVE-2026-89020?
Yes. Fixed in MikroTik RouterOS 6.49.21, MikroTik RouterOS 7.23.4, MikroTik RouterOS 7.24.2. Upgrade RouterOS to 7.24.2 or later.
How do I check if I'm affected by CVE-2026-89020?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.