LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2014-3120: Elasticsearch Remote Code Execution Vulnerability

RBRecent Breaches Vulnerability Intelligence·Mar 25, 2022
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Apr 15, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2014-3120 to its Known Exploited Vulnerabilities catalog on Mar 25, 2022, with a federal patch deadline of Apr 15, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

Elasticsearch enables dynamic scripting, which allows remote attackers to execute arbitrary MVEL expressions and Java code.

CVE-2014-3120 is a remote code execution vulnerability in Elastic Elasticsearch. When dynamic scripting is enabled, remote attackers can submit expressions that the engine evaluates, allowing arbitrary MVEL and Java code to run in the context of the Elasticsearch process. This matters because Elasticsearch often holds searchable business data and is reachable on internal or external networks; successful abuse can lead to full host compromise, data theft, or further lateral movement. Confirm exact affected releases and fixed versions against the vendor advisory.

How it works

The weakness is classified as CWE-284 (Improper Access Control). In this product class, Elasticsearch historically exposed a dynamic scripting feature that evaluated attacker-supplied expressions without adequate restriction. An unauthenticated or lightly authenticated remote attacker who can reach the HTTP API can craft requests that cause the scripting engine to execute MVEL expressions and, through them, arbitrary Java code. The result is code running with the privileges of the Elasticsearch service account. Specific request formats, payloads, and preconditions are not detailed here; treat any publicly reachable instance with dynamic scripting enabled as high risk and verify behavior against the vendor advisory and your own configuration.

Am I affected? How to find it in your systems

Elasticsearch commonly runs as a cluster of JVM processes on Linux or Windows servers, in containers, or as a managed service, listening on HTTP (often port 9200) and transport ports. Inventory steps:

Telemetry signs of exploitation are generic for this weakness: unexpected script-related errors or evaluations in Elasticsearch logs, sudden process spawning or outbound connections from the Elasticsearch user, unusual JVM activity, or new files/persistence under the data or config directories. Correlate with web-access logs showing anomalous POST or search requests. Confirm version and configuration status directly against the vendor advisory rather than relying on secondary lists.

How to remediate

Patch first. Apply the updates supplied by Elastic for Elasticsearch exactly as described in the vendor advisory and follow CISA’s required action: apply updates per vendor instructions. After upgrading:

If you can't patch immediately

Reduce exposure until the vendor update can be applied:

These controls are temporary; they do not replace the vendor patch.

If your data may have been exposed

Actively exploited remote-code-execution vulnerabilities in data platforms frequently precede breaches. If logs or other indicators suggest compromise, isolate affected nodes, preserve forensic images, rotate secrets, and follow your incident-response plan. You can run a free exposure scan of your email addresses against known breach data sets to check whether associated credentials or personal information have appeared in prior incidents, then force password resets and enable multi-factor authentication where applicable.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedElastic · Elasticsearch
WeaknessCWE-284
Added to CISA KEVMar 25, 2022
Federal patch deadlineApr 15, 2022
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities