{"cve":"CVE-2021-25646","nvd":{"published":"2021-01-29T20:15:12.997","modified":"2026-06-17T03:42:16.333","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":[],"references":["http://packetstormsecurity.com/files/162345/Apache-Druid-0.20.0-Remote-Command-Execution.html","http://www.openwall.com/lists/oss-security/2021/01/29/6","https://lists.apache.org/thread.html/r04fa1ba93599487c95a8497044d37f8c02a439bfcf92b4567bfb7c8f%40%3Ccommits.druid.apache.org%3E","https://lists.apache.org/thread.html/r121abe8014d381943b63c60615149d40bde9dc1c868bcee90d0d0848%40%3Ccommits.druid.apache.org%3E","https://lists.apache.org/thread.html/r20e0c3b10ae2c05a3aad40f1476713c45bdefc32c920b9986b941d8f%40%3Cannounce.apache.org%3E"],"products":["apache:druid"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-25646","score":0.99062,"percentile":0.99932,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wrqf-rrrw-w3mg","url":"https://osv.dev/vulnerability/GHSA-wrqf-rrrw-w3mg","summary":"Code injection in Apache Druid","modified":"2023-11-08T04:05:15.702845Z","packages":[{"ecosystem":"Maven","name":"org.apache.druid:druid","purl":"pkg:maven/org.apache.druid/druid","ranges":["<0.20.1"],"fixed":["0.20.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}