Home / Apache Software Foundation / Apache Druid / CVE-2021-25646
CVE-2021-25646: is it exploited, and which versions of Apache Software Foundation Apache Druid are affected and fixed?
CVE-2021-25646 is an incorrect permissions on a critical resource vulnerability in Apache Software Foundation Apache Druid. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: org.apache.druid:druid before 0.20.1 (GitHub advisory GHSA-wrqf-rrrw-w3mg). Fixed in 0.20.1 (GitHub advisory GHSA-wrqf-rrrw-w3mg). Severity: High (8.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 08:03 UTC.
What is CVE-2021-25646?
Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.
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.
From the CVE record by apache, last updated February 13, 2025, 16:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Druid | from 0.20.0 and earlier through 0.20.0 |
As the CVE record by apache states it, last updated February 13, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.druid:druid | < 0.20.1 | 0.20.1 | GHSA-wrqf-rrrw-w3mg |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 5, 2021. Summary: Code injection in Apache Druid.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | druid | through 0.20.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:42 UTC.
How severe is CVE-2021-25646?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 9.0 | CVSS 2.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-25646 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 99.1% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-732 Incorrect Permission Assignment for Critical Resource
Is there a workaround? (from the CVE record)
Users should upgrade to Druid 0.20.1. Whenever possible, network access to cluster machines should be restricted to trusted hosts only.
Where are the vendor advisories and references?
- https://lists.apache.org/thread.html/rfda8a3aa6ac06a80c5cbfdeae0fc85f88a5984e32ea05e6dda46f866%40%3Cdev.druid.apache.org%3E x_refsource_MISC
- [oss-security] 20210129 CVE-2021-25646: Authenticated users can override system configurations in their requests which allows them to execute arbitrary code. mailing-list, x_refsource_MLIST
- [druid-dev] 20210129 Re: [druid-user] Re: CVE-2021-25646: Authenticated users can override system configurations in their requests which allows them to execute mailing-list, x_refsource_MLIST
- [druid-dev] 20210129 Re: CVE-2021-25646: Authenticated users can override system configurations in their requests which allows them to execute arbitrary code. mailing-list, x_refsource_MLIST
- [announce] 20210129 Subject: [CVE-2021-25646] Apache Druid remote code execution vulnerability mailing-list, x_refsource_MLIST
- [druid-commits] 20210204 [GitHub] [druid] jihoonson merged pull request #10818: Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-commits] 20210204 [GitHub] [druid] jihoonson commented on pull request #10818: Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-commits] 20210204 [GitHub] [druid] jihoonson opened a new pull request #10854: [Backport] Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-commits] 20210204 [druid] branch 0.21.0 updated: Fix CVE-2021-25646 (#10818) (#10854) mailing-list, x_refsource_MLIST
- [druid-commits] 20210204 [GitHub] [druid] jihoonson merged pull request #10854: [Backport] Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-commits] 20210205 [GitHub] [druid] jihoonson opened a new pull request #10854: [Backport] Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-commits] 20210205 [GitHub] [druid] jihoonson merged pull request #10818: Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-commits] 20210205 [GitHub] [druid] jihoonson commented on pull request #10818: Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-commits] 20210205 [GitHub] [druid] jihoonson merged pull request #10854: [Backport] Fix CVE-2021-25646 mailing-list, x_refsource_MLIST
- [druid-dev] 20210331 Regarding the 0.21.0 release mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/162345/Apache-Druid-0.20.0-Remote-Command-Execution.html x_refsource_MISC
Who found and reported it?
- This issue was discovered by Litch1 from the Security Team of Alibaba Cloud. (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 21, 2021
- Published
- January 29, 2021, 19:15 UTC
- CVE record updated
- February 13, 2025, 16:27 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 03:42 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 08:03 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Druid?
- Feb 10, 2026CVE-2026-23906 Apache Software Foundation Apache Druid: authentication bypass (improper authentication)
- Nov 26, 2025CVE-2025-59390 Apache Software Foundation Apache Druid: weak random number generator
- Mar 20, 2025CVE-2025-27888 Apache Software Foundation Apache Druid: server-side request forgery (SSRF)
- Sep 17, 2024CVE-2024-45537 Apache Software Foundation Apache Druid: improper input validation
- Sep 17, 2024CVE-2024-45384 Apache Software Foundation Apache Druid: information disclosure in error messages
- Jul 7, 2022CVE-2022-28889 Apache Software Foundation Apache Druid: clickjacking (UI layer not restricted)
- Jul 7, 2022CVE-2021-44791 Apache Software Foundation Apache Druid: cross-site scripting (XSS)
- Sep 24, 2021CVE-2021-36749 Apache Software Foundation Apache Druid: incorrect authorization
Questions about CVE-2021-25646
Is CVE-2021-25646 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 99.1% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Druid are affected by CVE-2021-25646?
org.apache.druid:druid before 0.20.1, per the GitHub advisory GHSA-wrqf-rrrw-w3mg. The tables above give every range the sources list.
Which version fixes CVE-2021-25646?
0.20.1, per the GitHub advisory GHSA-wrqf-rrrw-w3mg. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-25646?
High (8.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-25646?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.