Description
The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execute arbitrary MVEL expressions and Java code via the source parameter to _search. NOTE: this only violates the vendor's intended security policy if the user does not run Elasticsearch in its own independent virtual machine.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
ElasticSearch Dynamic Script Arbitrary Java Execution
exploit/multi/elasticsearch/script_mvel_rce
Exploit-DB 2
- ElasticSearch Dynamic Script - Arbitrary Java Execution (Metasploit) EDB-33588 · remote · May 30, 2014 · verified
- ElasticSearch - Remote Code Execution EDB-33370 · webapps · May 15, 2014 · verified
GitHub 5 repositories
-
echohtp/ElasticSearch-CVE-2014-3120 ★ 6 · Jul 7, 2014
POC Code to exploite CVE-2014-3120
-
CyberCTF/vulhub-elasticsearch-cve-2014-3120 ★ 0 · Oct 8, 2026
Vulhub elasticsearch/CVE-2014-3120: Elasticsearch MVEL Dynamic Script RCE (CVE-2014-3120), run with Isoloom
-
Dungsocool/CVE-2014-3120 ★ 0 · May 31, 2026
-
xpgdgit/CVE-2014-3120 ★ 0 · Aug 1, 2022
-
jeffgeiger/es_inject ★ 0 · May 13, 2014
Demonstration of CVE-2014-3120
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- ElasticSearch v1.1.1/1.2 RCE http/cves/2014/CVE-2014-3120.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.elasticsearch:elasticsearch | < 1.4.0.Beta1 | 1.4.0.Beta1 | GHSA-mrfm-jxgf-2h6v |
References
- https://www.elastic.co/blog/logstash-1-4-3-released
- 33370 exploit
- 67731 vdb-entry
- 106949 vdb-entry
- http://bouk.co/blog/elasticsearch-rce/
- http://www.rapid7.com/db/modules/exploit/multi/elasticsearch/script_mvel_rce
- https://www.found.no/foundation/elasticsearch-security/#staying-safe-while-developing-with-elasticsearch
- https://www.elastic.co/community/security/