{
  "id": "CVE-2015-1427",
  "url": "https://poc.griffinguard.io/cve/CVE-2015-1427",
  "published_at": "2015-02-17T15:00:00Z",
  "title": "Elasticsearch Groovy Scripting Engine Remote Code Execution Vulnerability",
  "vendor": "Elastic",
  "product": "Elasticsearch",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-03-25",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 2593
  },
  "first_poc": {
    "created_at": "2015-03-10T04:04:32Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 20.5,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/elasticsearch/search_groovy_script.rb"
  },
  "poc_repo_count": 6,
  "exploit_count": 4,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "The Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the sandbox protection mechanism and execute arbitrary shell commands via a crafted script.",
  "cwe": "CWE-noinfo",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "h3inzzz/cve2015_1427",
      "url": "https://github.com/h3inzzz/cve2015_1427",
      "created_at": null,
      "first_seen_at": "2026-11-15T00:04:20.081Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "t0kx/exploit-CVE-2015-1427",
      "url": "https://github.com/t0kx/exploit-CVE-2015-1427",
      "created_at": "2017-01-09T20:08:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 32,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2017-01-04T21:32:29Z"
    },
    {
      "repo": "gitrobtest/Java-Security",
      "url": "https://github.com/gitrobtest/Java-Security",
      "created_at": "2017-07-03T06:14:49Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 81,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2016-10-14T15:54:33Z"
    },
    {
      "repo": "cved-sources/cve-2015-1427",
      "url": "https://github.com/cved-sources/cve-2015-1427",
      "created_at": "2019-01-06T21:18:13Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2019-01-06T17:06:27Z"
    },
    {
      "repo": "marcocesarato/Shell-BotKiller",
      "url": "https://github.com/marcocesarato/Shell-BotKiller",
      "created_at": "2019-05-31T20:53:21Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-02-13T14:25:29Z"
    },
    {
      "repo": "cyberharsh/Groovy-scripting-engine-CVE-2015-1427",
      "url": "https://github.com/cyberharsh/Groovy-scripting-engine-CVE-2015-1427",
      "created_at": "2020-06-22T05:00:22Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-11-06T07:47:57Z"
    },
    {
      "repo": "retr0-13/monkey-auto-pentool",
      "url": "https://github.com/retr0-13/monkey-auto-pentool",
      "created_at": "2022-03-13T10:41:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-07-19T08:08:30Z"
    },
    {
      "repo": "IsmailSoltakhanov17/Monkey",
      "url": "https://github.com/IsmailSoltakhanov17/Monkey",
      "created_at": "2022-04-14T11:12:43Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-09-16T14:37:55Z"
    },
    {
      "repo": "xpgdgit/CVE-2015-1427",
      "url": "https://github.com/xpgdgit/CVE-2015-1427",
      "created_at": "2022-07-29T09:14:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "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": "ricardolopezg/backend-swimm",
      "url": "https://github.com/ricardolopezg/backend-swimm",
      "created_at": "2022-10-07T15:24:39Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-11-16T01:25:28Z"
    },
    {
      "repo": "Sebikea/CVE-2015-1427-for-trixie",
      "url": "https://github.com/Sebikea/CVE-2015-1427-for-trixie",
      "created_at": "2024-11-10T15:33:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-04-03T11:55:00Z"
    },
    {
      "repo": "CyberCTF/vulhub-elasticsearch-cve-2015-1427",
      "url": "https://github.com/CyberCTF/vulhub-elasticsearch-cve-2015-1427",
      "created_at": "2026-10-08T19:58:44Z",
      "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.3.8"
        ],
        "fixed_in": [
          "1.3.8"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-w94p-6mhw-4qxw"
      },
      {
        "vendor": "",
        "product": "org.elasticsearch:elasticsearch",
        "ranges": [
          "\u003e= 1.4.0, \u003c 1.4.3"
        ],
        "fixed_in": [
          "1.4.3"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-w94p-6mhw-4qxw"
      }
    ],
    "upgrade": [
      "Upgrade org.elasticsearch:elasticsearch to 1.3.8 or later.",
      "Upgrade org.elasticsearch:elasticsearch to 1.4.3 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/36337",
      "source": "exploitdb",
      "title": "ElasticSearch - Remote Code Execution",
      "published_at": "2015-03-11T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/36415",
      "source": "exploitdb",
      "title": "ElasticSearch - Search Groovy Sandbox Bypass (Metasploit)",
      "published_at": "2015-03-16T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/elasticsearch/search_groovy_script.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: ElasticSearch Search Groovy Sandbox Bypass (exploit/multi/elasticsearch/search_groovy_script)",
      "published_at": "2015-03-10T04:04:32Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2015/CVE-2015-1427.yaml",
      "source": "nuclei",
      "title": "nuclei template: ElasticSearch - Remote Code Execution",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/_search",
      "query_markers": [
        "pretty="
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Accept-Language",
          "value": "en"
        }
      ],
      "body_markers": [
        "\"size\"",
        "\"script_fields\"",
        "\"lupin\"",
        "\"lang\":\"groovy\"",
        "\"script\""
      ],
      "content_type": "application/text",
      "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-2015-1427",
        "cyberharsh/Groovy-scripting-engine-CVE-2015-1427",
        "t0kx/exploit-CVE-2015-1427",
        "xpgdgit/CVE-2015-1427"
      ],
      "repo_count": 4,
      "confidence": 0.85,
      "evidence": [
        "CyberCTF/vulhub-elasticsearch-cve-2015-1427/app/README.md:72",
        "CyberCTF/vulhub-elasticsearch-cve-2015-1427/app/README.zh-cn.md:70",
        "cyberharsh/Groovy-scripting-engine-CVE-2015-1427/README.md:70",
        "t0kx/exploit-CVE-2015-1427/exploit.sh:9",
        "xpgdgit/CVE-2015-1427/CVE-2015-1427.py:51",
        "xpgdgit/CVE-2015-1427/CVE-2015-1427.py:66"
      ]
    },
    {
      "method": "POST",
      "path_template": "/website/blog/",
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Accept-Language",
          "value": "en"
        }
      ],
      "body_markers": [
        "\"name\":\"test\""
      ],
      "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-2015-1427",
        "cyberharsh/Groovy-scripting-engine-CVE-2015-1427"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "CyberCTF/vulhub-elasticsearch-cve-2015-1427/app/README.md:55",
        "CyberCTF/vulhub-elasticsearch-cve-2015-1427/app/README.zh-cn.md:53",
        "cyberharsh/Groovy-scripting-engine-CVE-2015-1427/README.md:53"
      ]
    },
    {
      "method": "PUT",
      "path_template": "/blog/user/dilbert",
      "body_markers": [
        "\"name\":\"Dilbert Brown\""
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        9200
      ],
      "protocol": "http",
      "repos": [
        "cved-sources/cve-2015-1427",
        "t0kx/exploit-CVE-2015-1427"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "cved-sources/cve-2015-1427/build/main.sh:7",
        "t0kx/exploit-CVE-2015-1427/main.sh:10"
      ]
    }
  ],
  "rules": []
}
