CVE-2026-89020

MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation

Published Sep 14, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a stack‑based buffer overflow in the TFTP RRQ builder of the mtget binary. When an authenticated user with read‑only group membership supplies a TFTP URL path of 507 bytes or more to the /tool fetch command, the unbounded copy overwrites saved registers. On older RouterOS releases this deterministic overwrite permits persistent privilege escalation on the device, while on newer releases with intact mitigations the best outcome is a crash of the mtget worker process. The exploit does not require a reachable TFTP server and achieves its effect through the crafted URL path.

Affected Systems

MikroTik RouterOS versions prior to 7.23.4 in the long‑term branch and prior to 7.24.2 in the stable branch are affected. The issue is confined to the mtget binary that handles TFTP operations.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity, demonstrating that the vulnerability enables persistent privilege escalation on older RouterOS versions and can also lead to process crashes on newer versions. The EPSS score of < 1% indicates a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. Because the attack requires an authenticated user with read‑only group membership and the exploitation surface is limited to the /tool fetch command, the overall risk remains high for affected systems but is constrained by the narrow privilege requirement and low exploitation likelihood.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MikroTik RouterOS to version 7.23.4 (long‑term) or 7.24.2 (stable) or later, which removes the vulnerable code.
  • If an upgrade cannot be performed immediately, restrict or disable the /tool fetch command or block TFTP traffic to new sessions to prevent abuse.
  • Continuously monitor system logs for unexpected mtget process restarts or crashes as an indicator of attempted exploitation.

Generated by OpenCVE AI on November 6, 2026 at 20:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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. 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.
Title MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}

Type Values Removed Values Added
CPEs cpe:2.3:o:mikrotik:routeros:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mikrotik
Mikrotik routeros
Vendors & Products Mikrotik
Mikrotik routeros
Type Values Removed Values Added
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.
Title MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 6, 2026, 7:25 PM
Reserved
Sep 10, 2026, 4:23 PM
Status
Awaiting Analysis
Published
Sep 14, 2026, 7:17 PM
Modified
Nov 6, 2026, 8:17 PM