WaratekVRT Sign in

CVE-2021-25646 Apache Druid

Affected softwareApache Druid
Severity8.8 High CVSS 3.1 2 scores
Fixed in0.20.1
WeaknessIncorrect permission assignment (CWE-732)
Published29 Jan 2021
Updated17 Jun 2026

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.

Exploitation status

Exploited

Real-world exploitation reported by VulnCheck KEV. CISA has not confirmed it.

  • CISA KEV not listed
  • VulnCheck KEV listed Exploitation reported in the wild. 1 citation · honeypot sightings · 13 exploits · earliest 2023-11-13.
  • CISA Vulnrichment no assessment published
  • Indexed PoC 15 indexed Published artifacts you can open, in GitHub PoC, Metasploit, Nuclei; first seen 2021-02-03.
  • EPSS 99% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99.9% of all scored CVEs.

VulnCheck KEV

Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2021-25646 in VulnCheck (free account), which lists 8 more exploit references not shown here.

EvidenceSourceDetailDate
Honeypot sighting Shadowserver honeypots Exploitation attempts seen on 876 days 2023-11-13 to 2026-11-12
Honeypot sighting VulnCheck canaries Exploitation attempts seen on 11 days 2026-10-27 to 2026-11-13
Reported exploitation aquasec.com /blog/lucifer-ddos-botnet-malware-is-targeting-apache-big-data-stack 2024-02-21
Exploit reference VulnCheck XDB 648dbf3f68af Exploit type: initial-access 2021-02-03
Exploit reference VulnCheck XDB 90e27828c0bf Exploit type: initial-access 2021-02-03
Exploit reference VulnCheck XDB e23be009996b Exploit type: initial-access 2021-02-04
Exploit reference VulnCheck XDB 762a40d94ce5 Exploit type: initial-access 2021-02-13
Exploit reference VulnCheck XDB ff8ab82ad27a Exploit type: initial-access 2021-12-02

6 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC 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 1,071 2021-03-11
Nuclei Apache Druid - Remote Code Execution
Metasploit Apache Druid 0.20.0 Remote Command Execution (excellent rank)
GitHub PoC Apache Druid 远程代码执行;检测脚本 17 2021-02-03
GitHub PoC CVE-2021-25646 Apache Druid 远程代码执行 漏洞检测和利用工具 4 2024-10-04
GitHub PoC Apache Druid remote code execution vulnerability - Apache Druid 远程代码执行漏洞利用 CVE-2021-25646 4 2021-12-12
GitHub PoC CVE-2021-25646 Apache Druid 远程代码执行漏洞 Wker脚本 3 2021-04-14
GitHub PoC Vulnmachines/Apache-Druid-CVE-2021-25646 3 2021-02-13
GitHub PoC lp008/CVE-2021-25646 2 2021-02-03
GitHub PoC A proof-of-concept for the CVE-2021-25646, which allows for Command Injection 1 2025-05-08

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: org.apache.druid:druid), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

CVSS

8.8 HIGH v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 9.0 none AV:N/AC:L/Au:S/C:C/I:C/A:C NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.druid:druid 0 0.20.1 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache druid generic ≤ 0.20.0
osv org.apache.druid druid generic < 0.20.1

References

URLTags
https://lists.apache.org/thread.html/r04fa1ba93599487c95a8497044d37f8c02a439bfcf92b4567bfb7c8f@%3Ccommits.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/r121abe8014d381943b63c60615149d40bde9dc1c868bcee90d0d0848@%3Ccommits.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/r20e0c3b10ae2c05a3aad40f1476713c45bdefc32c920b9986b941d8f@%3Cannounce.apache.org%3E WEB
https://lists.apache.org/thread.html/r443e2916c612fbd119839c0fc0729327d6031913a75081adac5b43ad@%3Cdev.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/r4f84b542417ea46202867c0a8b3eaf3b4cfed30e09174a52122ba210@%3Ccommits.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/r5ef625076982aee7d23c23f07717e626b73f421fba5154d1e4de15e1@%3Ccommits.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/r64431c2b97209f566b5dff92415e7afba0ed3bfab4695ebaa8a62e5d@%3Cdev.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/r7dff4790e7a5c697fc0360adf11f5aeb31cd6ad80644fffee690673c@%3Ccommits.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/r87aa94e28dd21ee2252d30c63f01ab9cb5474ee5bdd98dd8d7d734aa@%3Ccommits.druid.apache.org%3E WEB
https://lists.apache.org/thread.html/ra4225912f501016bc5e0ac44e14b8d6779173a3a1dc7baacaabcc9ba@%3Ccommits.druid.apache.org%3E WEB

Timeline

Published2021-01-29By the CVE Program.
VulnCheck KEV: earliest evidence2023-11-13Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE.
NVD record modified2026-06-17NVD's own last-modified date for this record.
VulnCheck KEV: latest evidence2026-11-13Date of the newest report, exploit reference or honeypot sighting in VulnCheck KEV's record.