CVE-2014-3120: MVEL Script Injection RCE in Elasticsearch _search
- Vendors
- ElasticElasticsearch
CVE-2014-3120 is a remote code execution vulnerability in Elasticsearch before 1.2.0 caused by an insecure default configuration that enables dynamic scripting through the MVEL engine. An attacker can supply a crafted script expression via the search API, including the source parameter or script_fields in a _search request, and Elasticsearch evaluates the expression without an effective sandbox. Because MVEL expressions can reach Java functionality, a remote attacker can execute arbitrary Java code and operating-system commands in the context of the Elasticsearch process. The issue is fundamentally an expression or code injection flaw exposed through Elasticsearch's scripting feature and made reachable by default in affected versions.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthenticated remote code execution with the privileges of the Elasticsearch daemon. Depending on how Elasticsearch is deployed, this can lead to full compromise of the underlying host, theft or manipulation of indexed data, installation of malware such as cryptominers, service disruption, and potential follow-on compromise of adjacent infrastructure. If the Elasticsearch service runs with elevated privileges, the resulting impact can extend to root-level system compromise.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to Elasticsearch HTTP interfaces to trusted administrators and application hosts only using firewalls, security groups, reverse proxies, or network segmentation. Do not expose the search API to the public Internet. Disable dynamic scripting in affected versions wherever possible. Run Elasticsearch under a dedicated low-privilege account and isolate it from sensitive host resources using virtualization, containers, or other sandboxing controls to reduce post-exploitation impact.
Remediation
Patch, then assume compromise.
Upgrade Elasticsearch to version 1.2.0 or later, where the insecure default behavior was changed. On systems that cannot be immediately upgraded, disable dynamic scripting and remove or tightly restrict any capability that permits MVEL script execution through search requests. Review deployment practices to ensure Elasticsearch does not run with unnecessary privileges and is not exposed directly to untrusted networks.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2014-3120 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 25, 2022.
- Is there a public exploit for CVE-2014-3120?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2014-3120, the earliest disclosed Dec 9, 2013.
- Is there a patch for CVE-2014-3120?
- Upgrade Elasticsearch to version 1.2.0 or later, where the insecure default behavior was changed. On systems that cannot be immediately upgraded, disable dynamic scripting and remove or tightly restrict any capability that permits MVEL script execution through search requests.
- What products are affected by CVE-2014-3120?
- Elasticsearch.
- How severe is CVE-2014-3120?
- CVE-2014-3120 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 88.6% (100th percentile) as of Oct 16, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.