PortGate

Advisories · Databases

CVE-2015-1427 Critical CVSS 9.8 Actively exploited

Elasticsearch Groovy scripting code execution

Disclosed 2015 · Last reviewed 2 Dec 2026

A search request could run Groovy on the node when dynamic scripting was enabled. That was the default on those old versions.

What happened

The script query compiled and ran the request body.

Affected and patched versions

Affected
Elasticsearch before 1.3.8 and 1.4.3, when dynamic Groovy scripting was still the default.
Patched
Elasticsearch 1.3.8, 1.4.3, and every later major, which disabled dynamic scripting by default.

How to check your server

Check

curl -s http://127.0.0.1:9200

How to fix and harden

  1. Check the version from localhost only.
  2. A 1.3 or 1.4 cluster needs to be upgraded, not left on the internet.
  3. Current Elasticsearch keeps scripting off unless you enable it. Do not enable inline scripts for untrusted users, and do not publish 9200.

Fix

curl -s http://127.0.0.1:9200

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON