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

Elasticsearch Groovy 脚本沙箱绕过远程代码执行(CVE-2015-1427)

CVE-2015-1427
CVSS 9.8 / 3.1 EPSS 99.9% CISA KEV 在野利用 勒索软件利用 公开 PoC · 6 Nuclei 模板
综合风险100/ 100
CVSS9.8严重
EPSS99.9%30 天利用概率
机构收录时间2015-02-17更新 2026-12-03

研判简报

概述

Elasticsearch 的 Groovy 脚本引擎存在沙箱保护绕过缺陷:远程攻击者可通过构造脚本逃逸沙箱机制,并以运行 Elasticsearch Java VM 的用户身份执行任意 shell 命令。该漏洞无需认证、经网络即可触发,攻击面覆盖所有对外可达的 Elasticsearch 服务实例。对应 CWE-284,即不当访问控制。使用受影响版本、并且接口可被外部访问的运营方应优先处置;同时,Red Hat JBoss Fuse/A-MQ 也受到牵连。

严重性

官方记录为 critical,CVSS 9.8(CVSS 3.1),综合风险分 100.0/100;EPSS 30 天利用概率 99.9%(百分位 100.0%,日期 2026-11-23)。攻击面可概括为:任何网络可达的 Elasticsearch 实例都可能在未授权情况下被直接利用。需要注意,参考材料中的 Nuclei 模板标注 severity: high、CVSS 2.0 7.5,与官方 CVSS 9.8 不一致;按规则以官方记录为准。

利用状态

截至核查日期 2026-11-24:CISA KEV 已收录,收录日期为 2022-03-25;已观察到勒索软件利用;CISA SSVC 判定为 automatable=yes、exploitation=active、technical_impact=total。公开 PoC 共 5 条,包括 Exploit-DB 36415、36337 等;已有公开 Nuclei 检测模板 http/cves/2015/CVE-2015-1427.yaml。KEV 要求动作是“Apply updates per vendor instructions”,期限为 2022-04-15,现已过期。

受影响产品

受影响版本区间如下:elastic:elasticsearch < 1.3.8;elastic:elasticsearch >= 1.4.0 且 < 1.4.3;另有 redhat:fuse:1.0.0。受影响组件为 Groovy 脚本引擎。具体部署形态和其他受影响的打包方式,材料未给出。

修复版本

官方已发布修复版本:elasticsearch 1.3.8、elasticsearch 1.4.3。Red Hat 侧对应 RHSA-2017:0868(Red Hat JBoss Fuse/A-MQ 6.3 R2 security and bug fix update,评级 Important),其中包含对 CVE-2015-1427 的修复。其他产品线的修复版本,材料未给出。

缓解措施

材料给出的核心动作是应用厂商更新(KEV 要求)。除此之外的临时缓解手段(例如禁用动态脚本、限制接口对外暴露)材料未给出,需由组织按自身情况评估。可作为自检依据的是 Nuclei 模板的逻辑:向 /_search 提交 lang=groovy 的 script_fields,若响应中出现 root:.*:0:0: 类输出,则可判定为脆弱或已可利用。

响应步骤

  1. 资产清点:核对 Elasticsearch 实例版本是否落在 < 1.3.8 或 1.4.0–1.4.3 区间,并确认 Red Hat JBoss Fuse/A-MQ 部署是否受影响。
  2. 升级处置:升级至 elasticsearch 1.3.8 或 1.4.3 及以上;Red Hat 环境按 RHSA-2017:0868 应用更新。
  3. 自检验证:使用 Nuclei 模板 CVE-2015-1427.yaml 对存量实例做检测。
  4. 日志排查:检索包含 script_fields、groovy 的请求,以及异常的进程执行痕迹;具体日志字段与筛查规则,材料未给出。
  5. 暴露面管控:将 Elasticsearch 服务从不可信网络收敛,具体网络管控建议材料未给出。
  6. 鉴于该 CVE 已列入 KEV 且有勒索软件利用,按应急事件流程处置,并留存证据与修复记录。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2015-1427kev
  2. https://www.exploit-db.com/exploits/36415exploit,exploitdb
  3. https://www.exploit-db.com/exploits/36337exploit,exploitdb
  4. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2015/CVE-2015-1427.yamlexploit,nuclei
  5. http://www.securityfocus.com/archive/1/534689/100/0/threadedmailing-list,x_refsource_BUGTRAQ,mailing-list,x_refsource_BUGTRAQ,x_transferred,
  6. http://packetstormsecurity.com/files/130784/ElasticSearch-Unauthenticated-Remote-Code-Execution.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Third Party Advisory,VDB
  7. https://access.redhat.com/errata/RHSA-2017:0868vendor-advisory,x_refsource_REDHAT,vendor-advisory,x_refsource_REDHAT,x_transfer
  8. http://www.securityfocus.com/bid/72585vdb-entry,x_refsource_BID,vdb-entry,x_refsource_BID,x_transferred,Broken Link,Th
  9. http://www.elasticsearch.com/blog/elasticsearch-1-4-3-1-3-8-released/x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Patch,Vendor Advisory
  10. https://exchange.xforce.ibmcloud.com/vulnerabilities/100850vdb-entry,x_refsource_XF,vdb-entry,x_refsource_XF,x_transferred,Third Party Advi
  11. http://packetstormsecurity.com/files/130368/Elasticsearch-1.3.7-1.4.2-Sandbox-Escape-Command-Execution.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Third Party Advisory,VDB Entry
  12. https://www.elastic.co/community/security/x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Not Applicable,Vendor Advi
  13. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2015-1427government-resource
  14. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_multi/elasticsearch/search_groovy_scriptexploit,metasploit
  15. https://www.f5.com/labs/articles/threat-intelligence/vulnerabilities-exploits-and-malware-driving-attack-campaigns-march-2019kev
  16. https://www.fortinet.com/blog/threat-research/closer-look-satan-ransomwares-propagation-technicskev