字号·· | 护眼
漏洞档案 · 严重

MikroTik RouterOS 目录遍历(CVE-2018-14847)

CVE-2018-14847 别名:GHSA-J583-4CFP-XF9M
CVSS 9.1 / 3.1 EPSS 96.8% CISA KEV 在野利用 公开 PoC · 22
综合风险91/ 100
CVSS9.1严重
EPSS96.8%30 天利用概率
机构收录时间2018-08-02更新 2026-12-01

研判简报

概述

MikroTik RouterOS 的 WinBox 接口存在目录遍历漏洞(CWE-22),未授权远程攻击者可读取任意文件,已认证远程攻击者可写入任意文件。公开 PoC 显示,攻击者可直接读取设备上的明文密码,且即使设备未配置 IP 地址,也可通过 MAC 层访问提取文件。该漏洞利用门槛低、自动化程度高,暴露 WinBox 服务(默认 TCP 8291)的路由器管理员应优先关注。

严重性

CVSS 3.1 评分 9.1(critical),综合风险分 92.6/100;EPSS 30 天利用概率 96.0%(百分位 99.9%,日期 2026-11-24)。攻击面为可达的 WinBox 服务端口及 mac-winbox 服务。

利用状态

CISA KEV 已收录(2021-12-01),KEV 要求动作「Apply updates per vendor instructions.」,期限 2022-06-01;CISA SSVC:automatable=yes / exploitation=active / technical_impact=total。Exploit-DB 及公开 PoC 共 22 条,参考材料中给出多个可用的 Python 3 利用脚本。核查日期 2026-11-24。勒索软件关联情况材料未给出;Nuclei 模板状态材料未给出。

受影响产品

官方记录描述为 RouterOS through 6.42,受影响版本字段为 n/a。参考材料给出更细的区间:2015-05-28 至 2018-04-20 间发布的版本均受影响,具体为 Longterm 6.30.1–6.40.7、Stable 6.29–6.42、Beta 6.29rc1–6.43rc3。组件为 WinBox 接口(含 mac-winbox);部署形态为路由器等网络设备。参考材料与官方记录在版本细节上存在出入,以官方记录为准。

修复版本

官方记录未给出具体修复版本号,仅要求按厂商说明应用更新;参考材料建议升级至包含修复的 RouterOS 版本,但未指明版本号。具体修复版本材料未给出。

缓解措施

无法立即升级时,参考材料建议:禁用 WinBox 服务;通过 /ip service set winbox address=... 限制可访问 WinBox 的源 IP 段;用防火墙 Filter Rules 丢弃来自 WAN 侧、目的端口 TCP 8291 的入站流量;通过 /tool mac-server mac-winbox 限制允许访问 mac-winbox 的接口。

响应步骤

  1. 排查暴露面:识别开放 TCP 8291 及 mac-winbox 服务的 RouterOS 设备,重点检查可从外网直达的设备。
  2. 核对版本:按上述区间确认设备是否落在受影响范围,记录版本与部署位置。
  3. 升级处置:按厂商说明升级至含修复的版本;升级前备份配置。
  4. 临时加固:对暂不能升级的设备禁用 WinBox、限制源地址并下发防火墙丢弃规则。
  5. 凭证轮换:鉴于 PoC 可读取明文密码,对相关设备及复用同口令的账号重置凭据,并检查异常账号与配置变更。
  6. 持续监控:保留 WinBox 访问日志,关注来自非管理网段的 8291 连接与 MAC 层异常发现行为。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2018-14847kev
  2. https://www.exploit-db.com/exploits/45578exploit,exploitdb
  3. https://www.exploit-db.com/exploits/45209exploit,exploitdb
  4. https://www.exploit-db.com/exploits/45578/exploit,exploit,x_refsource_EXPLOIT-DB,x_transferred,advisory,euvd
  5. https://github.com/BigNerd95/WinboxExploitx_refsource_MISC,x_transferred,advisory,euvd,poc,github
  6. https://github.com/tenable/routeros/blob/master/bug_hunting_in_routeros_derbycon_2018.pdfx_refsource_MISC,x_transferred,advisory,euvd
  7. https://github.com/BasuCert/WinboxPoCx_refsource_MISC,x_transferred,advisory,euvd,poc,github,exploit,poc_github
  8. https://github.com/tenable/routeros/tree/master/poc/cve_2018_14847x_refsource_MISC,x_transferred,advisory,euvd
  9. https://n0p.me/winbox-bug-dissection/x_refsource_MISC,x_transferred,advisory,euvd
  10. https://github.com/tenable/routeros/tree/master/poc/bythewayx_refsource_MISC,x_transferred,advisory,euvd
  11. https://mikrotik.com/supportsec/winbox-vulnerabilityadvisory,euvd
  12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-14847government-resource
  13. https://github.com/rapid7/metasploit-framework/tree/master/modules/auxiliary_gather/mikrotik_winbox_filereadexploit,metasploit
  14. https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-6729advisory,euvd
  15. https://www.researchgate.net/publication/348602660_An_analysis_of_the_use_of_CVEs_by_IoT_malwarekev
  16. https://unit42.paloaltonetworks.com/network-attack-trends-winter-2020/kev