CVE-2015-1427 in elasticsearch

The LogPulse agent checks every host for the vulnerable version of this software, so you see where the CVE is present.

What the vulnerability is

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.

Affected software: elasticsearch, redhat fuse

Scores

What LogPulse has for it

How to mitigate it

Upgrade end-of-life Elasticsearch 1.x and turn off dynamic scripting (CVE-2014-3120, CVE-2015-1427)

Patch or upgrade. Elasticsearch before 1.2.0 runs dynamic scripts from search requests by default and before 1.3.8 / 1.4.3 the Groovy sandbox can be escaped, so unauthenticated attackers run code (KEV). These versions are long out of support: upgrade to a supported Elasticsearch release.

Applies to: Elasticsearch before 1.2.0 (CVE-2014-3120) and before 1.3.8 or 1.4.x before 1.4.3 (CVE-2015-1427).

  1. Find the version: GET http://<host>:9200/ shows version.number, or check the elasticsearch package or the jar in the lib folder.
  2. Plan an upgrade to a supported Elasticsearch release; 1.x indices must be reindexed through intermediate major versions or restored into a new cluster (see the Elastic upgrade guide).
  3. Until upgraded, set script.disable_dynamic: true (1.x) and script.groovy.sandbox.enabled: false in elasticsearch.yml and restart each node.
  4. Make sure ports 9200 and 9300 are not reachable from the internet; allow only the application servers.
  5. Check the nodes for unknown processes, cron jobs and files in /tmp, since these versions were mass-exploited for crypto miners and botnets.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse