字号·· | 护眼
漏洞档案 · 高危

Elasticsearch 动态脚本远程代码执行(CVE-2014-3120)

CVE-2014-3120 别名:GHSA-MRFM-JXGF-2H6V
CVSS 8.1 / 3.1 EPSS 88.6% CISA KEV 在野利用 公开 PoC · 5 Nuclei 模板
综合风险84/ 100
CVSS8.1高危
EPSS88.6%30 天利用概率
机构收录时间2014-07-29更新 2026-12-03

研判简报

概述

Elasticsearch 1.2 之前的默认配置启用了动态脚本,远程攻击者可通过 _search 的 source 参数注入 MVEL 表达式并执行任意 Java 代码。该漏洞不需要认证或授权,REST API 可直接触达,因此默认部署即处于风险中。运行旧版 Elasticsearch 且 9200 端口可达的运维与安全团队应优先关注。NVD 描述同时注明:若用户未将 Elasticsearch 运行在独立虚拟机中,此问题才违反厂商预期安全策略。

严重性

CVSS 3.1 评分 8.1(high),综合风险分 84.11/100;EPSS 30 天利用概率 88.6%,百分位 99.8%。攻击面为默认开放的 REST API,利用门槛低。

利用状态

CISA KEV 已收录(2022-03-25),要求动作“Apply updates per vendor instructions”,期限 2022-04-15。CISA SSVC:automatable=no、exploitation=active、technical_impact=partial。已有公开 Nuclei 模板(http/cves/2014/CVE-2014-3120.yaml);Exploit-DB/公开 PoC 共 4 条,包括 Metasploit 模块(EDB 33588)与浏览器端读写文件 PoC(EDB 33370)。核查日期:2026-11-25。

受影响产品

Elastic / Elasticsearch,官方记录为 1.2 之前的版本。Metasploit 模块描述称“prior to 1.2.0”,并称已在 Elasticsearch 1.1.1(Ubuntu Server 12.04、Windows XP SP3)上测试成功。受影响组件为默认 REST API 的动态脚本执行路径;部署形态为默认配置、9200 端口可达且未启用认证授权的实例。官方记录中具体受影响版本字段为 n/a。

修复版本

官方记录仅给出“1.2 之前”受影响,Metasploit 模块描述提及 1.2.0 为修复分界;材料未给出更精确的官方修复版本号或 Elasticsearch 侧补丁公告。参考链接中的 elastic.co 链接为 Logstash 1.4.3 发布博客,并非本漏洞的 Elasticsearch 修复公告,需注意区分。

缓解措施

KEV 官方要求为按厂商指引应用更新,材料未给出配置级缓解方案。从利用路径看,攻击依赖 9200 端口 REST API 可达并携带 source 参数;限制该接口的网络暴露、将实例置于独立受控环境可降低可达性(基于材料推断)。材料未给出关闭动态脚本的具体配置项。

响应步骤

  1. 盘点 Elasticsearch 实例版本,确认是否存在低于 1.2 的节点(材料称 1.1.1 受影响)。
  2. 检查 9200 端口对外暴露情况与认证授权状态,收敛不必要的网络可达性。
  3. 检索 _search 请求中 source 参数包含脚本或 Java 类调用的异常流量。
  4. 使用 Nuclei 模板 http/cves/2014/CVE-2014-3120.yaml 对资产批量检测。
  5. 按 KEV 要求升级至 1.2 及以上(更精确版本材料未给出),无法升级时隔离实例。
  6. 参考 Exploit-DB 33588/33370 复核利用可行性并留存处置记录。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2014-3120kev
  2. https://www.exploit-db.com/exploits/33588exploit,exploitdb
  3. https://www.exploit-db.com/exploits/33370exploit,exploitdb
  4. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2014/CVE-2014-3120.yamlexploit,nuclei
  5. https://www.elastic.co/blog/logstash-1-4-3-releasedx_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  6. http://www.exploit-db.com/exploits/33370exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred,advi
  7. http://www.securityfocus.com/bid/67731vdb-entry,x_refsource_BID,vdb-entry,x_refsource_BID,x_transferred,advisory,euvd
  8. http://www.osvdb.org/106949vdb-entry,x_refsource_OSVDB,vdb-entry,x_refsource_OSVDB,x_transferred,advisory,e
  9. http://bouk.co/blog/elasticsearch-rce/x_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  10. http://www.rapid7.com/db/modules/exploit/multi/elasticsearch/script_mvel_rcex_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  11. https://www.found.no/foundation/elasticsearch-security/#staying-safe-while-developing-with-elasticsearchx_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  12. https://www.elastic.co/community/security/x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  13. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2014-3120government-resource
  14. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_multi/elasticsearch/script_mvel_rceexploit,metasploit
  15. https://euvd.enisa.europa.eu/enisa/EUVD-2022-5879kev
  16. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev