Remote code execution in Apache Druid JavaScript request handling
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
8 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.