CVE-2021-25646Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.
- 8.8HighCVSS base score
- 99.1%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
Apache Druid includes the ability to execute user-provided JavaScript code embedded in various types of requests. This functionality is intended for use in high-trust environments, and is disabled by default. However, in Druid 0.20.0 and earlier, it is possible for an authenticated user to send a specially-crafted request that forces Druid to run user-provided JavaScript code for that request, regardless of server configuration. This can be leveraged to execute code on the target machine with the privileges of the Druid server process.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and a Nuclei template for it.
Show the exploits2
Metasploit modules1 module
- Apache Druid 0.20.0 Remote Command Execution (Metasploit module) (opens in a new tab)
exploit/linux/http/apache_druid_js_rceRank excellentdisclosed 21 Jan 2021
Nuclei templates1 template
- Apache Druid - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2021/CVE-2021-25646.yamlSeverity high
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By apache
- 8 days later
· 8 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.1% · top 0.1% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
Apache Software Foundation · Apache Druid
- affected 0.20.0 and earlier – ≤ 0.20.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.druid:druidGHSA-wrqf-rrrw-w3mg (opens in a new tab)
What to do
Workaround: Users should upgrade to Druid 0.20.1. Whenever possible, network access to cluster machines should be restricted to trusted hosts only.
References
References16
- https://lists.apache.org/thread.html/rfda8a3aa6ac06a80c5cbfdeae0fc85f88a5984e32ea05e6dda46f866%40%3Cdev.druid.apache.org%3E (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20210129 CVE-2021-25646: Authenticated users can override system configurations in their requests which allows them to execute arbitrary code. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-dev] 20210129 Re: [druid-user] Re: CVE-2021-25646: Authenticated users can override system configurations in their requests which allows them to execute arbitrary code. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-dev] 20210129 Re: CVE-2021-25646: Authenticated users can override system configurations in their requests which allows them to execute arbitrary code. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [announce] 20210129 Subject: [CVE-2021-25646] Apache Druid remote code execution vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210204 [GitHub] [druid] jihoonson merged pull request #10818: Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210204 [GitHub] [druid] jihoonson commented on pull request #10818: Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210204 [GitHub] [druid] jihoonson opened a new pull request #10854: [Backport] Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210204 [druid] branch 0.21.0 updated: Fix CVE-2021-25646 (#10818) (#10854) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210204 [GitHub] [druid] jihoonson merged pull request #10854: [Backport] Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210205 [GitHub] [druid] jihoonson opened a new pull request #10854: [Backport] Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210205 [GitHub] [druid] jihoonson merged pull request #10818: Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210205 [GitHub] [druid] jihoonson commented on pull request #10818: Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210205 [GitHub] [druid] jihoonson merged pull request #10854: [Backport] Fix CVE-2021-25646 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-dev] 20210331 Regarding the 0.21.0 release (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/162345/Apache-Druid-0.20.0-Remote-Command-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-1420 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-wrqf-rrrw-w3mg (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-25646)Record last updated .