CVE-2014-3120 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 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.
Affected software: elasticsearch
Scores
- CVSS: 8.1 (high)
- EPSS: 88.56% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2022-03-25
- Published: 2014-07-28
What LogPulse has for it
- Detection rule: No
- Agent check (vulnerable version): Yes, published
- Mitigation: Yes, see below
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).
- Find the version: GET http://<host>:9200/ shows version.number, or check the elasticsearch package or the jar in the lib folder.
- 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).
- Until upgraded, set script.disable_dynamic: true (1.x) and script.groovy.sandbox.enabled: false in elasticsearch.yml and restart each node.
- Make sure ports 9200 and 9300 are not reachable from the internet; allow only the application servers.
- 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.