CVE-2021-25646: Remote code execution in Apache Druid JavaScript request handling
- Vendor
- Apache Software Foundation
CVE-2021-25646 is a code injection vulnerability in Apache Druid 0.20.0 and earlier. A specially crafted request can force execution of user-provided JavaScript despite server configuration disabling JavaScript execution. Successful exploitation permits code execution on the host with the privileges of the Druid server process. The vulnerability description specifies an authenticated attacker, while campaign reporting describes unauthenticated exploitation.
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 permits attacker-controlled code and operating-system commands to execute with Druid server-process privileges. The Lucifer campaign exploited this vulnerability to compromise Linux systems and deploy cryptocurrency-mining malware. The scope of host compromise depends on the permissions granted to the Druid process.
Mitigation
If you can’t patch tonight, do this now.
Secure exposed Druid services and monitor workloads for abnormal runtime behavior, including unexpected command execution and cryptocurrency mining. Disabling JavaScript execution alone does not prevent exploitation because crafted requests bypass that configuration.
Remediation
Patch, then assume compromise.
Apply Apache Druid security updates that address CVE-2021-25646. The available information identifies 0.20.0 and earlier as affected but does not identify a specific fixed release.
Exploits
8 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
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-2021-25646 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-25646?
- Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2021-25646, the earliest disclosed Jan 21, 2021.
- Is there a patch for CVE-2021-25646?
- Apply Apache Druid security updates that address CVE-2021-25646. The available information identifies 0.20.0 and earlier as affected but does not identify a specific fixed release.
- What products are affected by CVE-2021-25646?
- Apache Software Foundation Druid.
- How severe is CVE-2021-25646?
- CVE-2021-25646 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 99.1% (100th percentile) as of Oct 16, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.