Exploit database

Vulnerability

CVE-2021-25646

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

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

17 sources
Apache Druid 0.20.0 Remote Command Execution
MSF-linux--http--apache_druid_js_rceMetasploitLinux,Unix / remotePreferred

Apache Druid includes the ability to execute user-provided JavaScript code embedded in various types of requests; however, that feature is disabled by default. In Druid versions prior to `0.20.1`, an authenticated user can send a specially-crafted request that both enables the JavaScript code-execution feature and executes the supplied code all at once, allowing for code execution on the server with the privileges of the Druid Server process. More critically, authentication is not enabled in Apache Druid by default. Tested on the following Apache Druid versions: * 0.15.1 * 0.16.0-iap8 * 0.17.1 * 0.18.0-iap3 * 0.19.0-iap7 * 0.20.0-iap4.1 * 0.20.0 * 0.21.0-iap3

2021-01-21apache_druid_js_rce.rb
bigblackhat/ofx
GH-e5e9839114413d56d271656aba98f851GitHubUnofficial GitHub source

一个开源的、开箱即用的漏洞批量验证框架

2021-06-02301 files · 920 stars
ares-x/vulwiki
GH-b2475400c94493fe152f60086532a05fGitHubUnofficial GitHub source

中文漏洞知识库,整理 Web、中间件、网络设备与系统漏洞的原理和公开复现资料,支持按产品、CVE、指纹检索。Chinese vulnerability knowledge base.

2020-10-1328,818 files · 242 stars
clincat/vulcat
GH-a6bec4ad14291e9330f3f036dc243bf2GitHubUnofficial GitHub source

vulcat可用于扫描Web端常见的CVE、CNVD等编号的漏洞,发现漏洞时会返回Payload信息。部分漏洞还支持命令行交互模式,可以持续利用漏洞

2022-04-10228 files · 133 stars
arpsyndicate/kenzer-templates
GH-e5a0867366963da7a3617cf6f32fda4bGitHubUnofficial GitHub source

essential templates for kenzer [DEPRECATED]

2020-09-185,308 files · 118 stars
yaunsky/cve-2021-25646
GH-479bf1207303c561acf62efd470ae44fGitHubUnofficial GitHub source

Apache Druid 远程代码执行;检测脚本

2021-02-033 files · 17 stars
cvedb/awesome-cve-repo
GH-5d2d5bc79e38467342aae25328e8c9d0GitHubUnofficial GitHub source

cvedb/awesome-cve-repo source repository

2023-03-237 files · 9 stars
j2ekim/cve-2021-25646
GH-0f8fb78d6216464e41ff6bcd71408ec4GitHubUnofficial GitHub source

Apache Druid remote code execution vulnerability - Apache Druid 远程代码执行漏洞利用 CVE-2021-25646

2021-12-123 files · 4 stars
k7pro/cve-2021-25646-exp
GH-ffa7fba5e0d6e59f631c1e7fdc60055dGitHubUnofficial GitHub source

CVE-2021-25646 Apache Druid 远程代码执行 漏洞检测和利用工具

2024-10-0417 files · 4 stars
bealright/poc-exp
GH-2631312c943796798c8f0949519fdcd4GitHubUnofficial GitHub source

基于Pocsuite3编写的Poc&Exp

2022-01-304 files · 2 stars
cvedb/top
GH-2e626f612a2d87f79d1d9385117cfa16GitHubUnofficial GitHub source

cvedb/top source repository

2023-03-1911 files · 2 stars
12442rf/poc
GH-3a840c3a743e0417793b49231edf2d51GitHubUnofficial GitHub source

12442rf/poc source repository

2025-05-0612 files · 1 stars
chengongpp/purge
GH-6fea7fa4994f3f668af0a5f956fd8740GitHubUnofficial GitHub source

Python Utilities Rewritten in Go and Enhanced

2024-11-1823 files · 1 stars
ormicron/cve-2021-25646-gui
GH-da152eeb8f8420f6e546a4d33f65f741GitHubUnofficial GitHub source

CSharp CVE-2021-25646-GUI

2021-02-0427 files · 1 stars
tiemio/rce-poc-cve-2021-25646
GH-16f16c601205ae40da2e9d5f8dd0d4fdGitHubUnofficial GitHub source

A proof-of-concept for the CVE-2021-25646, which allows for Command Injection

2025-05-084 files · 1 stars
cyberctf/vulhub-apache-druid-cve-2021-25646
GH-c54dd6445622c6100f393a4362433f4fGitHubUnofficial GitHub source

Vulhub apache-druid/CVE-2021-25646: Apache Druid Embedded JavaScript RCE (CVE-2021-25646), run with Isoloom

2026-10-0816 files · 0 stars
d4n-sec/d4n-sec.github.io
GH-a977c770ad0cb70a8725a440ce0aeba7GitHubUnofficial GitHub source

Generated personal blog

2026-11-06385 files · 0 stars