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

TerraMaster OS 远程代码执行(CVE-2022-24989)

CVE-2022-24989 别名:GHSA-37WM-XP2M-G3H7
CVSS 9.8 / 3.1 EPSS 26.1% CISA KEV 在野利用 勒索软件利用 公开 PoC · 1
综合风险89/ 100
CVSS9.8严重
EPSS26.1%30 天利用概率
机构收录时间2023-08-20更新 2026-11-29

研判简报

概述

TerraMaster NAS 的 api.php?mobile/createRaid 接口在处理 raidtype 与 diskstring 参数时存在 PHP 对象实例化缺陷,raidtype 中的 shell 元字符因 popen 未做净化而被执行,攻击者可远程以 root 权限执行任意代码。该漏洞可通过 WAN 触发,且可复用 CVE-2022-24990 利用所获凭据,利用门槛低、后果为完全控制设备。使用 TerraMaster OS 4.2.30 及以下版本、且管理接口暴露于公网的 NAS 运营方应优先关注。

严重性

CVSS 3.1 评分 9.8(critical),综合风险分 91.42/100;EPSS 30 天利用概率 26.1%(百分位 98.4%,日期 2026-11-26)。攻击面为暴露于 WAN 的 api.php?mobile/createRaid 接口,CISA SSVC 判定 automatable=yes、exploitation=poc、technical_impact=total。

利用状态

截至核查日期 2026-11-26:已收录 CISA KEV(2024-02-22),存在已知勒索软件利用;Exploit-DB/公开 PoC 记录 1 条,参考链接含 Metasploit 模块与 GitHub PoC 仓库。Nuclei 状态材料未给出。KEV 要求动作:按厂商说明应用修复或缓解措施,若无可用的修复或缓解措施则停止使用该产品(期限材料未给出)。

受影响产品

TerraMaster OS(terra-master:terramaster_operating_system)< 4.2.31,即 <= 4.2.30 版本;涉及组件为 api.php?mobile/createRaid 的 PHP 对象实例化处理逻辑。部署形态为 NAS 设备,可经 WAN 远程攻击。CWE-74。

修复版本

官方修复版本为 TerraMaster OS 4.2.31(结构化提取)。补丁细节与获取方式材料未给出。

缓解措施

无法立即升级时,按 KEV 要求遵循厂商说明采取缓解措施,或停止使用该产品;材料未给出具体缓解配置项。可考虑的通用方向包括限制管理接口的公网暴露,但材料未给出厂商确认的具体做法。

响应步骤

  1. 盘点所有 TerraMaster NAS 实例,确认 OS 版本是否 <= 4.2.30。
  2. 升级至 4.2.31 或以上;升级前保留日志与配置备份。
  3. 检查 api.php?mobile/createRaid 的访问日志,排查 raidtype、diskstring 参数中的异常 shell 元字符与可疑来源 IP。
  4. 排查是否存在 CVE-2022-24990 凭据复用痕迹,重置相关账户凭据。
  5. 结合勒索软件利用情报,检查设备文件完整性与异常进程、持久化项。
  6. 对暂无法修复的设备,按 KEV 要求执行厂商缓解措施或下线隔离。

参考来源

  1. https://www.360.cn/n/12457.htmlkev
  2. https://vulncheck.com/xdb/8b0d16de2567exploit,vulncheck_xdb
  3. https://github.com/0xf4n9x/CVE-2022-24990poc,github,x_transferred,Exploit,advisory,euvd
  4. https://vulncheck.com/kev/cve-2022-24989advisory,vulncheck_kev
  5. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_linux/http/terramaster_unauth_rce_cve_2022_24990exploit,metasploit
  6. https://forum.terra-master.com/en/viewforum.php?f=28x_transferred,Release Notes,advisory,euvd
  7. https://packetstormsecurity.com/files/172904x_transferred,Exploit,Third Party Advisory,VDB Entry,advisory,euvd
  8. https://attackerkb.com/topics/h8YKVKx21t/cve-2022-24990x_transferred,Third Party Advisory,advisory,euvd
  9. https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-object-instantiationx_transferred,Exploit,advisory,euvd
  10. https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-29736advisory,euvd