PoC Monitor
← All CVEs
CVE-2014-3120published 28 Jul 2014 19:00 UTCData: JSON · API

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.

First public PoC 75 days beforebefore publication · 15 May 2014 · Exploit-DB
Public PoCs95 on GitHub · 4 Exploit-DB, Metasploit or nuclei
CVSS8.1high · scored by CISA ADP · CWE-284
CISA KEV 25 Mar 20227.7 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

org.elasticsearch:elasticsearch (Maven)
  • < 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 publication
t=0+1 y+2 y+3 y+4 y+5 y+6 y+7 yFirst public PoC15 May 2014 · t−75dCVE published28 Jul 2014 · t = 0Added to CISA KEV25 Mar 2022 · t+7.7y

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
CVE record (tagged exploit)33370unknown14 Nov 2026
Exploit-DBElasticSearch - Remote Code Execution15 May 201414 Nov 2026
Exploit-DBElasticSearch Dynamic Script - Arbitrary Java Execution (Metasploit)30 May 201414 Nov 2026
MetasploitMetasploit exploit: ElasticSearch Dynamic Script Arbitrary Java Execution (exploit/multi/elasticsearch/script_mvel_rce)27 May 201414 Nov 2026
nuclei templatenuclei template: ElasticSearch v1.1.1/1.2 RCE27 Apr 202314 Nov 2026
PoC Indexhttp://www.rapid7.com/db/modules/exploit/multi/elasticsearch/script_mvel_rceunknown14 Nov 2026

PoC characteristics

What to hunt for in your logs · from 5 PoC repos

POST /_search

Query
pretty=
Key headers
Accept: */* Accept-Language: en
Body markers
"size" "query" "filtered" "match_all" "script_fields" "command" "script" in application/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" in application/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" in application/json
Seen in
1 repo: echohtp/ElasticSearch-CVE-2014-3120
Evidence
echohtp/ElasticSearch-CVE-2014-3120/elastic_check.py:51

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /_search
(?i)^/_search\?(?:.*&)?pretty=
POST /website/blog/
(?i)^/website/blog/(?:[?#].*)?$
GET /_search
(?i)^/_search(?:[?#].*)?$
GET /dnler
(?i)^/dnler(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /_search
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;)
POST /website/blog/
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;)
GET /_search
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;)
GET /dnler
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.

POST /_search
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
POST /website/blog/
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
GET /_search
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
GET /dnler
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