{"id":"CVE-2021-25646","published":"2021-01-29T19:15:12Z","modified":"2025-02-13T16:27:49Z","title":"Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.","vendor":"Apache Software Foundation","product":"Apache Druid","tier":"core","eol":null,"affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Druid","versions":[">= 0.20.0 and earlier, <= 0.20.0"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Apache Druid, from the Apache Software Foundation, contains a flaw in its handling of user-provided JavaScript embedded in requests, where an authenticated user can craft a request that forces the server to run that JavaScript even when the feature is disabled in the server configuration. Exploitation requires only an authenticated user account, and successful exploitation allows arbitrary code execution on the target machine with the privileges of the Druid server process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:14:24Z"},"cvss":null,"epss":{"score":0.99062,"percentile":0.99932,"date":"2026-10-31","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2023-11-13","exploitedFirstSeen":"2023-11-13","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-13&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-13"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-14&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-14"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-15&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-15"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-16&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-16"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-17&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-17"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-19&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-19"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-20&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-20"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-21&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-21"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-22&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-22"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-23&host_type=src&vulnerability=cve-2021-25646","date":"2023-11-23"}],"evidenceTotal":864,"provenance":"source"},"exploited":true,"otx":{"pulseCount":5,"pulses":[{"name":"TuxBot v3: Inside an IoT Botnet Framework With LLM-Assisted Development","url":"https://otx.alienvault.com/pulse/6a589f83231e4cad61103a92","created":"2026-07-16"},{"name":"Inside an IoT Botnet Framework With LLM-Assisted Development","url":"https://otx.alienvault.com/pulse/6a585dd1af5d4dd0ee2a8178","created":"2026-07-16"},{"name":"Inside an IoT Botnet Framework With LLM-Assisted Development","url":"https://otx.alienvault.com/pulse/6a5775d49e35f9a04532b24d","created":"2026-07-15"},{"name":"EbeeJuly2026 Pt4","url":"https://otx.alienvault.com/pulse/6a5677c7f67012eb53d1811f","created":"2026-07-14"},{"name":"Thor-Lite Linux 64 (06.11.24) - enriched a bit more but not 'pruned'","url":"https://otx.alienvault.com/pulse/6668b85065eec626e4766a38","created":"2024-06-11"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread.html/rfda8a3aa6ac06a80c5cbfdeae0fc85f88a5984e32ea05e6dda46f866%40%3Cdev.druid.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2021/01/29/6","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r64431c2b97209f566b5dff92415e7afba0ed3bfab4695ebaa8a62e5d%40%3Cdev.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rc167d5e57f3120578718a7a458ce3e73b3830ac4efbb1b085bd06b92%40%3Cdev.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r20e0c3b10ae2c05a3aad40f1476713c45bdefc32c920b9986b941d8f%40%3Cannounce.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r4f84b542417ea46202867c0a8b3eaf3b4cfed30e09174a52122ba210%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rea9436a4063927a567d698431ddae55e760c3f876c22ac5b9813685f%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r121abe8014d381943b63c60615149d40bde9dc1c868bcee90d0d0848%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rfeb775822cd3baef1595b60f6860f5ca849eb1903236483f3297bd5c%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r04fa1ba93599487c95a8497044d37f8c02a439bfcf92b4567bfb7c8f%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r87aa94e28dd21ee2252d30c63f01ab9cb5474ee5bdd98dd8d7d734aa%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r7dff4790e7a5c697fc0360adf11f5aeb31cd6ad80644fffee690673c%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/ra4225912f501016bc5e0ac44e14b8d6779173a3a1dc7baacaabcc9ba%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r5ef625076982aee7d23c23f07717e626b73f421fba5154d1e4de15e1%40%3Ccommits.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r443e2916c612fbd119839c0fc0729327d6031913a75081adac5b43ad%40%3Cdev.druid.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://packetstormsecurity.com/files/162345/Apache-Druid-0.20.0-Remote-Command-Execution.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.apache.druid:druid","vulnerableRanges":["<0.20.1"],"patched":["0.20.1"],"from":["GHSA-wrqf-rrrw-w3mg"],"provenance":"source"}],"advisories":[{"id":"GHSA-wrqf-rrrw-w3mg","url":"https://github.com/advisories/GHSA-wrqf-rrrw-w3mg","severity":"HIGH","ecosystem":"Maven","package":"org.apache.druid:druid","vulnerableRanges":["<0.20.1"],"patched":["0.20.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2021-1420","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1420","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":13,"skipped":0,"earliest":"2021-02-03","earliestUrl":"https://github.com/yaunsky/cve-2021-25646","repos":[{"name":"1n7erface/PocList","url":"https://github.com/1n7erface/PocList","stars":1070,"created":"2021-03-11"},{"name":"yaunsky/cve-2021-25646","url":"https://github.com/yaunsky/cve-2021-25646","stars":17,"created":"2021-02-03"},{"name":"j2ekim/CVE-2021-25646","url":"https://github.com/j2ekim/CVE-2021-25646","stars":4,"created":"2021-12-12"},{"name":"k7pro/CVE-2021-25646-exp","url":"https://github.com/k7pro/CVE-2021-25646-exp","stars":4,"created":"2024-10-04"},{"name":"Vulnmachines/Apache-Druid-CVE-2021-25646","url":"https://github.com/Vulnmachines/Apache-Druid-CVE-2021-25646","stars":3,"created":"2021-02-13"}]},"metasploit":[{"name":"Apache Druid 0.20.0 Remote Command Execution","module":"exploit/linux/http/apache_druid_js_rce","type":"exploit","disclosureDate":"2021-01-21","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_druid_js_rce.rb"}],"nuclei":[{"id":"CVE-2021-25646","name":"Apache Druid - Remote Code Execution","severity":"high","path":"http/cves/2021/CVE-2021-25646.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25646.yaml"}],"first":{"date":"2021-01-21","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_druid_js_rce.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/162345/Apache-Druid-0.20.0-Remote-Command-Execution.html"],"flow":[],"timeline":[{"date":"2021-01-21","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2021-02-03","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_druid_js_rce.rb","provenance":"source"},{"date":"2021-01-29","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-25646","provenance":"source"},{"date":"2023-11-13","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-13&host_type=src&vulnerability=cve-2021-25646","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":61.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1083 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.99,"detail":"percentile 0.9993"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 13 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.77,"detail":"5 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2020-1958","published":"2020-04-01","fixed":"0.17.1","kev":false},{"cve":"CVE-2021-25646","published":"2021-01-29","fixed":"0.20.1","kev":false},{"cve":"CVE-2021-26919","published":"2021-03-30","fixed":"0.20.2","kev":false,"link":{"from":"CVE-2021-25646","to":"CVE-2021-26919","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.druid:druid","fromFixed":"0.20.1","toFixed":"0.20.2","daysApart":60}]}},{"cve":"CVE-2021-44791","published":"2022-07-07","fixed":"0.23.0","kev":false},{"cve":"CVE-2022-28889","published":"2022-07-07","fixed":"0.23.0","kev":false}],"package":"Maven:org.apache.druid:druid"}}