Elastic Elasticsearch
Elasticsearch Remote Code Execution Vulnerability
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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 1.4.0.Beta1
Fixed in 1.4.0.Beta1
from GitHub Security Advisory GHSA-mrfm-jxgf-2h6v
Mitigation
Upgrade org.elasticsearch:elasticsearch to 1.4.0.Beta1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 75 days before publication; added to CISA KEV 7.7 years after publication. First PoC: ElasticSearch - Remote Code Execution (Exploit-DB, 15 May 2014).
PoC repositories
Found on GitHub.5 PoCs · 2 pending · 1 informational
PoCs 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| echohtp/ElasticSearch-CVE-2014-3120 | 7 Jul 2014 −21 d | 6 | PoC |
| pi-2r/Elasticsearch-ExpLoit | 30 Mar 2015 +245 d | 0 | PoC |
| Olysyan/MSS | 16 Jul 2021 +7.0 y | 0 | PoC |
| xpgdgit/CVE-2014-3120 | 1 Aug 2022 +8.0 y | 0 | PoC |
| CyberCTF/vulhub-elasticsearch-cve-2014-3120 | 8 Oct 2026 +12.2 y | 0 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| jeffgeiger/es_inject | 13 May 2014 −76 d | 0 | Pending · mkdir /quarantine/jeffgeiger__es_inject-a228ddf023ad: permission denied |
| Dungsocool/CVE-2014-3120 | 31 May 2026 +11.8 y | 0 | Pending |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| aazard/Cyber_Security_Base_Project_II | 11 Jun 2025 +10.9 y | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 33370 | unknown | 14 Nov 2026 |
| Exploit-DB | ElasticSearch - Remote Code Execution | 15 May 2014 | 14 Nov 2026 |
| Exploit-DB | ElasticSearch Dynamic Script - Arbitrary Java Execution (Metasploit) | 30 May 2014 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: ElasticSearch Dynamic Script Arbitrary Java Execution (exploit/multi/elasticsearch/script_mvel_rce) | 27 May 2014 | 14 Nov 2026 |
| nuclei template | nuclei template: ElasticSearch v1.1.1/1.2 RCE | 27 Apr 2023 | 14 Nov 2026 |
| PoC Index | http://www.rapid7.com/db/modules/exploit/multi/elasticsearch/script_mvel_rce | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 5 PoC reposPOST /_search
- Query
pretty=- Key headers
Accept: */*Accept-Language: en- Body markers
"size""query""filtered""match_all""script_fields""command""script"inapplication/x-www-form-urlencoded- Ports
- 9200
- PoC User-Agent
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)- Seen in
- 2 repos: CyberCTF/vulhub-elasticsearch-cve-2014-3120, xpgdgit/CVE-2014-3120
- Evidence
- CyberCTF/vulhub-elasticsearch-cve-2014-3120/app/README.md:53 CyberCTF/vulhub-elasticsearch-cve-2014-3120/app/README.zh-cn.md:49 xpgdgit/CVE-2014-3120/CVE-2014-3120.py:67 xpgdgit/CVE-2014-3120/CVE-2014-3120.py:82
POST /website/blog/
- Key headers
Accept: */*Accept-Language: en- Body markers
"name":"vulhub"inapplication/x-www-form-urlencoded- Ports
- 9200
- PoC User-Agent
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)- Seen in
- 1 repo: CyberCTF/vulhub-elasticsearch-cve-2014-3120
- Evidence
- CyberCTF/vulhub-elasticsearch-cve-2014-3120/app/README.md:36 CyberCTF/vulhub-elasticsearch-cve-2014-3120/app/README.zh-cn.md:32
GET /_search
- Body markers
"size""query""filtered""match_all""script_fields""results""script"inapplication/json- Seen in
- 1 repo: echohtp/ElasticSearch-CVE-2014-3120
- Evidence
- echohtp/ElasticSearch-CVE-2014-3120/elastic_check.py:51
GET /dnler
- Seen in
- 1 repo: pi-2r/Elasticsearch-ExpLoit
- Evidence
- pi-2r/Elasticsearch-ExpLoit/filesender1.sh:304
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/_search\?(?:.*&)?pretty=
(?i)^/website/blog/(?:[?#].*)?$
(?i)^/_search(?:[?#].*)?$
(?i)^/dnler(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [9200] (msg:"GG PoC-Monitor CVE-2014-3120 Elastic Elasticsearch exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/_search"; http.uri; content:"pretty="; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; http.request_body; content:"|22|size|22|"; http.request_body; content:"|22|query|22|"; http.request_body; content:"|22|filtered|22|"; http.request_body; content:"|22|match_all|22|"; http.request_body; content:"|22|script_fields|22|"; http.request_body; content:"|22|command|22|"; http.request_body; content:"|22|script|22|"; reference:url,poc.griffinguard.io/cve/CVE-2014-3120; classtype:web-application-attack; sid:9413886; rev:1;)
alert http any any -> $HOME_NET [9200] (msg:"GG PoC-Monitor CVE-2014-3120 Elastic Elasticsearch exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/website/blog/"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; http.request_body; content:"|22|name|22|:|22|vulhub|22|"; reference:url,poc.griffinguard.io/cve/CVE-2014-3120; classtype:web-application-attack; sid:9075640; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2014-3120 Elastic Elasticsearch exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/_search"; http.request_body; content:"|22|size|22|"; http.request_body; content:"|22|query|22|"; http.request_body; content:"|22|filtered|22|"; http.request_body; content:"|22|match_all|22|"; http.request_body; content:"|22|script_fields|22|"; http.request_body; content:"|22|results|22|"; http.request_body; content:"|22|script|22|"; reference:url,poc.griffinguard.io/cve/CVE-2014-3120; classtype:web-application-attack; sid:9607728; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2014-3120 Elastic Elasticsearch exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/dnler"; reference:url,poc.griffinguard.io/cve/CVE-2014-3120; classtype:web-application-attack; sid:9532868; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Elastic Elasticsearch exploit attempt (CVE-2014-3120)
id: gg-pocmon-cve-2014-3120-9413886
status: experimental
description: Request pattern taken from public PoCs for CVE-2014-3120. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2014-3120
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/_search'
cs-uri-query|contains|all:
- 'pretty='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2014.3120
title: Elastic Elasticsearch exploit attempt (CVE-2014-3120)
id: gg-pocmon-cve-2014-3120-9075640
status: experimental
description: Request pattern taken from public PoCs for CVE-2014-3120. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2014-3120
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/website/blog/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2014.3120
title: Elastic Elasticsearch exploit attempt (CVE-2014-3120)
id: gg-pocmon-cve-2014-3120-9607728
status: experimental
description: Request pattern taken from public PoCs for CVE-2014-3120. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2014-3120
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/_search'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2014.3120
title: Elastic Elasticsearch exploit attempt (CVE-2014-3120)
id: gg-pocmon-cve-2014-3120-9532868
status: experimental
description: Request pattern taken from public PoCs for CVE-2014-3120. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2014-3120
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/dnler'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2014.3120