# CVE-2026-89020: MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-28)
- **CWE:** CWE-121
- **Published:** 2026-09-14T18:02:58.553Z
- **Modified:** 2026-11-06T20:17:27.910Z

## 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

## 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

- MikroTik RouterOS: \>= 6.0.0, \< 6.49.21; \>= 7.0.0, \< 7.23.4; \>= 7.24.0, \< 7.24.2 (cvelist)

## Mitigation

- Upgrade RouterOS to 7.24.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://mikrotik.com/supportsec/cve-2026-89020/>
- patch: <https://forum.mikrotik.com/t/7-24-2-stable-is-released/272800>
- patch: <https://forum.mikrotik.com/t/7-23-4-long-term-is-released/272801>
- patch: <https://forum.mikrotik.com/t/6-49-21-long-term-is-released/272802>
- exploit: <https://gitlab.com/sys65535/CVE-2026-89020-privesc-research>
- other: <https://www.vulncheck.com/advisories/mikrotik-routeros-stack-buffer-overflow-via-tftp-url-path>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89020>

HTML: <https://flawdb.com/CVE-2026-89020> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89020>
