Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2015-1427: Elasticsearch Groovy Sandbox Bypass RCE

Published Feb 17, 2015 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS99.9%100th percentile
CISA KEVYesAdded Mar 25, 2022
In the wildActivePer CISA KEV
Vendors
ElasticRed Hat
IdentifiersCVE-2015-1427CWE-284

CVE-2015-1427 is a sandbox-bypass vulnerability in Elasticsearch's Groovy scripting engine affecting versions before 1.3.8 and the 1.4.x branch before 1.4.3. A remote attacker can submit a crafted script that escapes sandbox restrictions and executes arbitrary operating-system commands. A demonstrated technique uses Java reflection to load java.lang.Runtime indirectly and invoke exec().

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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 enables arbitrary shell command execution on the Elasticsearch host. The resulting access depends on the privileges of the Elasticsearch process; root-level execution has been demonstrated in a deliberately vulnerable laboratory deployment. Observed exploitation has delivered cryptocurrency miners and backdoors, enabling resource hijacking, persistence, system-information theft, and botnet participation.

Mitigation

If you can’t patch tonight, do this now.

Reduce Elasticsearch's network exposure through network segmentation and restricted access, apply secure configuration guidance, and use intrusion prevention to detect or block exploitation attempts. These controls do not replace patching.

Remediation

Patch, then assume compromise.

Upgrade Elasticsearch to version 1.3.8 or later in the 1.3.x branch, or version 1.4.3 or later in the 1.4.x branch.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
search_groovy_script.rbThis repository contains a single Metasploit module targeting ElasticSearch servers vulnerable to CVE-2015-1427 (Groovy sandbox bypass, RCE). The exploit abuses the REST API (default port 9200) to send a specially crafted search request containing Groovy code, which bypasses the sandbox and allows arbitrary Java code execution. The module determines the target's OS and temporary directory, writes a base64-encoded Java payload (typically a Meterpreter shell) to a temporary file, and loads it via a URLClassLoader. The exploit is weaponized, allowing the attacker to select and deliver any Metasploit Java payload. The only code file is a Ruby Metasploit module, and the main attack vector is network-based, targeting the unauthenticated ElasticSearch REST API. The endpoints of interest are the REST API URL (http://<target>:9200/_search) and the temporary file path used for payload delivery.Disclosed Feb 11, 2015 · Framework: metasploit · ruby · networkWeaponizedvulhub-elasticsearch-cve-2015-1427This is a deliberately vulnerable Elasticsearch training lab with valid exploit payloads documented in app/README.md and its Chinese translation, rather than a standalone automated exploit tool. The walkthrough creates an indexed document and submits a Groovy script_fields search request to escape the sandbox, execute id and return its output. It documents both a Java-reflection/Runtime technique and a direct Groovy execute() variant. CVE-2015-1427 is the target; CVE-2014-3120 appears only as historical context. The documentation identifies 1.3.8 and 1.4.3 as fixed releases, while the supplied lab specifically runs 1.4.2. The 33 files include vendored Vulhub walkthroughs and Compose configuration under app/, a Dockerfile, entrypoint and logging configuration under base/elasticsearch/1.4.2/, the central isoloom.yml specification, and generated deployment outputs under .isoloom/. These outputs support Docker, Kubernetes, Vagrant-hosted Docker, Proxmox-hosted Docker and six cloud providers: AWS, Azure, DigitalOcean, GCP, Linode and OCI. GitHub workflows validate and publish the lab. The 15 code/build/IaC files comprise seven Terraform files, one Ruby Vagrantfile, six shell scripts and one Dockerfile; YAML deployment files and workflow-embedded commands are additional infrastructure content. Groovy exploit code exists inside Markdown documentation. The checks verify HTTP availability, the reported 1.4.2 version and blocked Internet access; they do not exercise the sandbox bypass or prove successful exploitation. Docker isolation removes the target's default route, while Kubernetes uses network policies whose enforcement depends on the cluster networking implementation. Cloud firewalls restrict inbound SSH and published ports to an operator-provided CIDR, but Kubernetes supplies a LoadBalancer service with unrestricted source ingress on 9200 and 9300. The legacy app Compose file also publishes both ports without the generated isolation controls. No callback, exfiltration, persistence or container-escape mechanism is present. Cleanup commands in provisioning and CI have ordinary lab-management purposes and do not indicate a fake exploit. The default deployment pulls vulhub/elasticsearch:1.4.2 by tag; the vendored build recipe is not used automatically and relies on historical download sources. Analysis is static and does not establish runtime success. The original analyzed repository URL, analyzed git reference and archive size were not supplied; empty strings and zero represent unavailable metadata. The documented Vulhub commit 8fd63916f7a8711e2e01dda0d27237e4d6175d38 identifies upstream provenance, not the analyzed repository reference.CyberCTF · Disclosed Oct 8, 2026 · sh · bash · web · networkOperationalexploit-CVE-2015-1427This repository provides a proof-of-concept exploit for CVE-2015-1427, a remote code execution vulnerability in Elasticsearch versions 1.4.0 to 1.4.2. The repository includes a Dockerfile to set up a vulnerable Elasticsearch environment, a main.sh script to initialize the service and add sample data, and an exploit.sh script that performs the actual exploit. The exploit works by sending a specially crafted Groovy script via the Elasticsearch REST API (typically on port 9200), which bypasses the Groovy sandbox and executes arbitrary system commands (demonstrated with 'whoami'). The exploit does not require authentication and targets the default REST API endpoint. The repository is structured for easy testing and demonstration of the vulnerability, making it suitable for educational and research purposes.t0kx · Disclosed Jan 9, 2017 · bash · dockerfile · networkPoC
Exposure surface

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.

VendorProductType
ElasticElasticsearchapplication
Red HatJboss Fuseapplication
FAQ

Frequently asked questions

Is CVE-2015-1427 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-2015-1427?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2015-1427, the earliest disclosed Feb 11, 2015.
Is there a patch for CVE-2015-1427?
Upgrade Elasticsearch to version 1.3.8 or later in the 1.3.x branch, or version 1.4.3 or later in the 1.4.x branch.
What products are affected by CVE-2015-1427?
Elasticsearch and Red Hat Jboss Fuse.
How severe is CVE-2015-1427?
CVE-2015-1427 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.9% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+6 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware11Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.