{"id":"CVE-2026-89020","aliases":["CVE-2026-89020"],"related":[],"kind":"vulnerability","state":"published","title":"MikroTik RouterOS Stack Buffer Overflow via TFTP URL Path Leading to Privilege Escalation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-14T18:02:58.553Z","modified":"2026-11-06T20:17:27.910Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"semver","introduced":"6.0.0","fixed":"6.49.21","status":"affected"},{"type":"semver","introduced":"7.0.0","fixed":"7.23.4","status":"affected"},{"type":"semver","introduced":"7.24.0","fixed":"7.24.2","status":"affected"}],"vendor":"MikroTik","product":"RouterOS","source":"cvelist"}],"references":[{"url":"https://forum.mikrotik.com/t/7-24-2-stable-is-released/272800","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://forum.mikrotik.com/t/7-23-4-long-term-is-released/272801","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/mikrotik-routeros-stack-buffer-overflow-via-tftp-url-path","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://forum.mikrotik.com/t/6-49-21-long-term-is-released/272802","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://mikrotik.com/supportsec/cve-2026-89020/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.com/sys65535/CVE-2026-89020-privesc-research","tags":["exploit","technical-description"],"sources":["cvelist","nvd"]}],"credits":["Kazuma Matsumoto, a security researcher at GMO Cybersecurity by IERAE, Inc.","Cristiano Maranci","Davide Turaccio"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-16T16:07:48.174Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89020","url":"https://www.cve.org/CVERecord?id=CVE-2026-89020","licence":"CVE Terms of Use","modified":"2026-11-06T19:25:15.011Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89020","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89020","licence":"Public domain","modified":"2026-11-06T20:17:27.910Z"}],"updatedAt":"2026-11-25T22:59:38.346Z","epss":{"score":0.00556,"percentile":0.4774,"date":"2026-12-01T12:00:22.000Z"}}