nday
CVE-2021-25646

Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.

Apache Software Foundation / Apache Druid

Disclosed . nday has no fix record for it yet; that does not mean no patch exists. Listed by 2 of 4 PoC sources: metasploit and nuclei. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

network
AV:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from NVD's analysts
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from NVD's analysts
Metasploit
Metasploit modules exploit/linux/http/apache_druid_js_rce
nuclei
nuclei templates CVE-2021-25646
stage
POC
disclosed
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2021-01-29T19:15Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
metasploit, nuclei
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Event log

+DISdisclosed

CVE record published by apache.

src cvelist · nday , bulk import · raw
{
  "id": 63089,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2021-25646",
  "occurred_at": "2021-01-29T19:15:12Z",
  "observed_at": "2026-11-12T20:03:12.555163Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2021-01-29T19:15:12.000Z",
    "assigner_short_name": "apache"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/linux/http/apache_druid_js_rce (Apache Druid 0.20.0 Remote Command Execution). The source gives no release time for the module.

src metasploit exploit/linux/http/apache_druid_js_rce · nday , bulk import · raw
{
  "id": 50394,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_druid_js_rce.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/linux/http/apache_druid_js_rce",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_druid_js_rce.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/linux/http/apache_druid_js_rce.rb",
    "rank": 600,
    "check": true,
    "title": "Apache Druid 0.20.0 Remote Command Execution",
    "cve_ids": [
      "CVE-2021-25646"
    ],
    "fullname": "exploit/linux/http/apache_druid_js_rce",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-04-22 11:54:55 +0000",
    "vuln_disclosure_date": "2021-01-21"
  }
}
time unknownsource gave no time
+POCpublic PoC

Nuclei has detection template CVE-2021-25646 (Apache Druid - Remote Code Execution). The source gives no release time for the template.

src nuclei · nday , bulk import · raw
{
  "id": 54532,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25646.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2021-25646",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25646.yaml",
    "kind": "detection_template",
    "title": "Apache Druid - Remote Code Execution",
    "severity": "high",
    "confidence": "curated",
    "cvss_score": "8.8",
    "template_id": "CVE-2021-25646",
    "template_path": "http/cves/2021/CVE-2021-25646.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.