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.
CVE-2021-25646
“▲” beside the score: it is higher than NVD's CVSS score.
Score elevated to 9.0 because EPSS predicted 99% probability of exploitation within the next 30 days (99th percentile of EPSS-scored CVEs) when EchelonGraph scored this CVE. NVD baseline CVSS 8.8 retained for reference. Confidence: see factors.
Also known asEUVD-2021-1420 (ENISA EUVD) · GHSA-wrqf-rrrw-w3mg (GitHub Security Advisories)Source: ENISA EUVD
- High exploitation likelihood — EPSS 99%
- Public exploit code is available (Metasploit, other public proof-of-concept code)
A fix is available — apply it.
Fixed versions, as the CVE record's CNA (Apache Software Foundation) states them in the record's workaround: "Users should upgrade to Druid 0.20.1."
- CVSS v3
- 8.8
- EG Score
- 9.0CRITICALhigh confidence
- EG Risk
- 79EG Risk 79/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity88% × 45%Impact severity (EG Severity): CVSS 8.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation99% × 40%FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.Automatability0% × 15%CISA's BOD 26-04 default: no one has published Automatable for this CVE, and CISA treats it as “no” for a CVE not in KEV.SSVC (CISA's decision table, applied by EchelonGraph): Track at low, Track* at medium and Attend at high mission impact.Exploitation public PoC (exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 99%
- EPSS %ILE
- 99th
- KEV
- Not listed
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.0): severity, escalated by confirmed exploitation. This CVE's 9.0 is EPSS's lift toward 9.0 from its impact severity (EG Severity, CVSS 8.8 HIGH): a likelihood of exploitation, not impact.
- EG Severity
- 8.8 HIGHCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- 99% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-01). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Track* at medium mission impactTrack at low, Track* at medium and Attend at high mission impact.CISA BOD 26-04: 14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low, Track* at medium and Attend at high mission impact.
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation public PoC (exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). Where an input reads “CISA's BOD 26-04 default”, no one has published it for this CVE, and CISA's implementation guidance says: “If “Automatable” and “Technical Impact” information items about a CVE ID are not available and the CVE ID is not in the KEV Catalog, CISA will treat its values as “no” and “total,” respectively, until CISA or a third party provides metadata about the CVE ID. CISA will always provide the Vulnrichment data for a CVE ID listed in the KEV Catalog.” Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
January 29, 2021
Last Modified
November 21, 2024
Advisory Details (10)
Auto-updated Aug 9, 2026oss-security - CVE-2021-25646: Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.
http://www.openwall.com/lists/oss-security/2021/01/29/6Locked Out | Packet Storm
http://packetstormsecurity.com/files/162345/Apache-Druid-0.20.0-Remote-Command-Execution.htmlPatch Availability(1)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| maven | org.apache.druid:druid @ 0.20.1 (fixes < 0.20.1) | — | ghsa |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
Maven(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| org.apache.druid:druid | 0.13.0-incubating ... 0.20.0 (14 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 10× in last 7d / 28× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 9 repeat rows among the latest 75 are merged into the row they repeat.
- 2026-11-01 17:04 UTCEG score recompute
- 2026-11-01 17:04 UTCGHSA enrichmentGHSA-wrqf-rrrw-w3mg · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-01 08:34 UTCGHSA enrichmentGHSA-wrqf-rrrw-w3mg · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-01 08:34 UTCEG score recompute
- 2026-10-31 16:52 UTCEG score recompute
- 2026-10-30 16:20 UTCEG score recompute
- 2026-10-29 16:06 UTCEG score recompute
- 2026-10-28 15:52 UTCEG score recompute
- 2026-10-27 16:28 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-10-27 15:39 UTCEG score recompute
- 2026-10-26 15:20 UTCEG score recompute
- 2026-10-25 16:28 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-10-25 14:14 UTCEG score recompute
- 2026-10-24 14:00 UTCEG score recompute
- 2026-10-23 13:47 UTCEG score recompute
- 2026-10-22 16:29 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-10-22 13:34 UTCEG score recompute
- 2026-10-21 13:21 UTCEG score recompute
- 2026-10-20 13:07 UTCEG score recompute
- 2026-10-19 12:48 UTCEG score recompute
- 2026-10-18 09:07 UTCEG score recompute
- 2026-10-17 09:23 UTCEG score recompute
- 2026-10-16 09:08 UTCEG score recompute
- 2026-10-15 08:33 UTCEG score recompute
- 2026-10-14 16:28 UTCEPSS rescoreEPSS 99% · 99th percentile
Show 41 moreShow fewer
- 2026-10-14 04:50 UTCEG score recompute
- 2026-10-12 19:21 UTCEG score recompute
- 2026-10-11 23:47 UTCEG score recompute
- 2026-09-30 15:32 UTCEG score recompute
- 2026-09-26 11:25 UTCOSV refresh
- 2026-09-26 00:21 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-09-21 20:28 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-09-12 14:57 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-09-06 23:01 UTCOSV refresh
- 2026-09-06 13:44 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-09-05 15:25 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-09-04 05:03 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-08-30 19:14 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-08-28 21:37 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-08-26 14:42 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-08-24 14:12 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-08-20 09:01 UTCOSV refresh
- 2026-08-13 21:57 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-08-08 16:33 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-08-05 04:40 UTCOSV refresh
- 2026-07-28 15:33 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-07-26 14:52 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-07-24 14:15 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-07-23 01:58 UTCEG score recompute
- 2026-07-22 22:45 UTCEG score recompute
- 2026-07-21 15:22 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-07-19 02:52 UTCOSV refresh
- 2026-07-09 19:07 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-07-06 02:21 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-07-01 09:48 UTCOSV refresh
- 2026-06-17 17:51 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-06-15 17:46 UTCEPSS rescoreEPSS 99% · 99th percentile
- 2026-06-13 15:13 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-11 13:58 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-08 14:15 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-06 13:46 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-05 22:45 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-01 13:50 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-28 13:43 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-26 21:29 UTCEG score recompute
Publicly available exploits
(9 references)Public exploit code is referenced for this CVE (1 Metasploit module, 7 GitHub PoCs), as is 1 Nuclei detection template. A detection template checks whether a system is affected; it is not necessarily exploit code. Defenders should treat patch urgency accordingly.
- Metasploitexploit/linux/http/apache_druid_js_rce✓ verifiedPublished Apr 26, 2021
Apache Druid 0.20.0 Remote Command Execution
Open source ↗ - GitHub PoCk7pro/CVE-2021-25646-expPublished Oct 4, 2024
CVE-2021-25646 Apache Druid 远程代码执行 漏洞检测和利用工具
Open source ↗ - GitHub PoCj2ekim/CVE-2021-25646Published Dec 12, 2021
Apache Druid remote code execution vulnerability - Apache Druid 远程代码执行漏洞利用 CVE-2021-25646
Open source ↗ - GitHub PoCgivemefivw/CVE-2021-25646Published Apr 14, 2021
CVE-2021-25646 Apache Druid 远程代码执行漏洞 Wker脚本
Open source ↗ - GitHub PoC1n7erface/PocListPublished Mar 11, 2021
Alibaba-Nacos-Unauthorized/ApacheDruid-RCE_CVE-2021-25646/MS-Exchange-SSRF-CVE-2021-26885/Oracle-WebLogic-CVE-2021-2109_RCE/RG-CNVD-2021-14536/RJ-SSL-VPN-UltraVires/Redis-Unauthorized-RCE/TDOA-V11.7-GetOnlineCookie/VMware-vCenter-GetAnyFile/yongyou-GRP-U8-XXE/Oracle-WebLogic-CVE-2020-14883/Oracle-WebLogic-CVE-2020-14882/Apache-Solr-GetAnyFile/F5-BIG-IP-CVE-2021-22986/Sonicwall-SSL-VPN-RCE/GitLab-Graphql-CNVD-2021-14193/D-Link-DCS-CVE-2020-25078/WLAN-AP-WEA453e-RCE/360TianQing-Unauthorized/360TianQing-SQLinjection/FanWeiOA-V8-SQLinjection/QiZhiBaoLeiJi-AnyUserLogin/QiAnXin-WangKangFirewall-RCE/金山-V8-终端安全系统/NCCloud-SQLinjection/ShowDoc-RCE
Open source ↗ - Open source ↗GitHub PoCVulnmachines/Apache-Druid-CVE-2021-25646Published Feb 13, 2021
- Open source ↗GitHub PoClp008/CVE-2021-25646Published Feb 3, 2021
- GitHub PoCyaunsky/cve-2021-25646Published Feb 3, 2021
Apache Druid 远程代码执行;检测脚本
Open source ↗ - Nucleihttp/cves/2021/CVE-2021-25646.yamlPublished Feb 3, 2021
Apache Druid - Remote Code Execution
Open source ↗
Related CVEs(same product + same CWE)
Same product
7 shownMaven:org.apache.druid:druid
Frequently asked(5)
What is CVE-2021-25646?
When was the CVE record for CVE-2021-25646 published?
Is CVE-2021-25646 actively exploited?
What is the CVSS score of CVE-2021-25646?
How do I remediate CVE-2021-25646?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-25646
Is Your Infrastructure Affected by CVE-2021-25646?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.