{
  "id": "CVE-2014-3120",
  "url": "https://poc.griffinguard.io/cve/CVE-2014-3120",
  "published_at": "2014-07-28T19:00:00Z",
  "title": "Elasticsearch Remote Code Execution Vulnerability",
  "vendor": "Elastic",
  "product": "Elasticsearch",
  "cvss": {
    "score": 8.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-03-25",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 2797
  },
  "first_poc": {
    "created_at": "2014-05-15T00:00:00Z",
    "first_seen_at": "2026-11-14T10:41:53.518Z",
    "days_after_publication": -74.8,
    "source": "exploitdb",
    "url": "https://www.exploit-db.com/exploits/33370"
  },
  "poc_repo_count": 5,
  "exploit_count": 4,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-284",
  "cvss_by_source": {
    "cisa-adp": 8.1
  },
  "repos": [
    {
      "repo": "jeffgeiger/es_inject",
      "url": "https://github.com/jeffgeiger/es_inject",
      "created_at": "2014-05-13T16:37:29Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2012-01-08T04:18:49Z"
    },
    {
      "repo": "echohtp/ElasticSearch-CVE-2014-3120",
      "url": "https://github.com/echohtp/ElasticSearch-CVE-2014-3120",
      "created_at": "2014-07-07T20:28:34Z",
      "first_seen_at": "2026-11-14T10:41:53.518Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2010-06-23T20:17:26Z"
    },
    {
      "repo": "pi-2r/Elasticsearch-ExpLoit",
      "url": "https://github.com/pi-2r/Elasticsearch-ExpLoit",
      "created_at": "2015-03-30T23:22:33Z",
      "first_seen_at": "2026-11-14T10:41:53.518Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-10-30T15:37:25Z"
    },
    {
      "repo": "Olysyan/MSS",
      "url": "https://github.com/Olysyan/MSS",
      "created_at": "2021-07-16T01:46:48Z",
      "first_seen_at": "2026-11-14T10:41:53.518Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-03-24T09:12:42Z"
    },
    {
      "repo": "xpgdgit/CVE-2014-3120",
      "url": "https://github.com/xpgdgit/CVE-2014-3120",
      "created_at": "2022-08-01T04:39:04Z",
      "first_seen_at": "2026-11-14T10:41:53.518Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-07-27T08:29:30Z"
    },
    {
      "repo": "aazard/Cyber_Security_Base_Project_II",
      "url": "https://github.com/aazard/Cyber_Security_Base_Project_II",
      "created_at": "2025-06-11T13:29:27Z",
      "first_seen_at": "2026-11-14T10:41:53.518Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-11-25T00:15:13Z"
    },
    {
      "repo": "Dungsocool/CVE-2014-3120",
      "url": "https://github.com/Dungsocool/CVE-2014-3120",
      "created_at": "2026-05-31T10:07:43Z",
      "first_seen_at": "2026-11-14T10:41:53.518Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-06-05T08:34:34Z"
    },
    {
      "repo": "CyberCTF/vulhub-elasticsearch-cve-2014-3120",
      "url": "https://github.com/CyberCTF/vulhub-elasticsearch-cve-2014-3120",
      "created_at": "2026-10-08T22:15:29Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-12-01T11:12:42Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.elasticsearch:elasticsearch",
        "ranges": [
          "\u003c 1.4.0.Beta1"
        ],
        "fixed_in": [
          "1.4.0.Beta1"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-mrfm-jxgf-2h6v"
      }
    ],
    "upgrade": [
      "Upgrade org.elasticsearch:elasticsearch to 1.4.0.Beta1 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "http://www.exploit-db.com/exploits/33370",
      "source": "cvelist",
      "title": "33370",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/33370",
      "source": "exploitdb",
      "title": "ElasticSearch - Remote Code Execution",
      "published_at": "2014-05-15T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/33588",
      "source": "exploitdb",
      "title": "ElasticSearch Dynamic Script - Arbitrary Java Execution (Metasploit)",
      "published_at": "2014-05-30T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/elasticsearch/script_mvel_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: ElasticSearch Dynamic Script Arbitrary Java Execution (exploit/multi/elasticsearch/script_mvel_rce)",
      "published_at": "2014-05-27T23:01:16Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2014/CVE-2014-3120.yaml",
      "source": "nuclei",
      "title": "nuclei template: ElasticSearch v1.1.1/1.2 RCE",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "http://www.rapid7.com/db/modules/exploit/multi/elasticsearch/script_mvel_rce",
      "source": "pocindex",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-14T11:25:11.578Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/_search",
      "query_markers": [
        "pretty="
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Accept-Language",
          "value": "en"
        }
      ],
      "body_markers": [
        "\"size\"",
        "\"query\"",
        "\"filtered\"",
        "\"match_all\"",
        "\"script_fields\"",
        "\"command\"",
        "\"script\""
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        9200
      ],
      "user_agents": [
        "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
      ],
      "protocol": "http",
      "repos": [
        "CyberCTF/vulhub-elasticsearch-cve-2014-3120",
        "xpgdgit/CVE-2014-3120"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "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"
      ]
    },
    {
      "method": "POST",
      "path_template": "/website/blog/",
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Accept-Language",
          "value": "en"
        }
      ],
      "body_markers": [
        "\"name\":\"vulhub\""
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        9200
      ],
      "user_agents": [
        "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
      ],
      "protocol": "http",
      "repos": [
        "CyberCTF/vulhub-elasticsearch-cve-2014-3120"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "CyberCTF/vulhub-elasticsearch-cve-2014-3120/app/README.md:36",
        "CyberCTF/vulhub-elasticsearch-cve-2014-3120/app/README.zh-cn.md:32"
      ]
    },
    {
      "method": "GET",
      "path_template": "/_search",
      "body_markers": [
        "\"size\"",
        "\"query\"",
        "\"filtered\"",
        "\"match_all\"",
        "\"script_fields\"",
        "\"results\"",
        "\"script\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "echohtp/ElasticSearch-CVE-2014-3120"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "echohtp/ElasticSearch-CVE-2014-3120/elastic_check.py:51"
      ]
    },
    {
      "method": "GET",
      "path_template": "/dnler",
      "protocol": "https",
      "repos": [
        "pi-2r/Elasticsearch-ExpLoit"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "pi-2r/Elasticsearch-ExpLoit/filesender1.sh:304"
      ]
    }
  ],
  "rules": []
}
