Every CVE Search/ Get API key

CVE-2021-25646

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

8.8 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

99.1%Up 54.4 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 8.8

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.

Record
CVE-2021-25646
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
9.0 HighAV:N/AC:L/Au:S/C:C/I:C/A:C
Updated
2026-11-02
CVE List No score

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

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.

Record
CVE-2021-25646
Updated
2026-11-02
EUVDEUVD-2021-1420 0.0

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.

Record
EUVD-2021-1420
CVSS
0.0 NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-wrqf-rrrw-w3mg 8.8

Code injection in Apache Druid

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.

Record
GHSA-wrqf-rrrw-w3mg
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-732
Updated
2026-11-02
OSV 8.8

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.

Record
CVE-2021-25646
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-wrqf-rrrw-w3mg 8.8

Code injection in Apache Druid

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.

Record
GHSA-wrqf-rrrw-w3mg
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-732
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.apache.druid:druid
Maven
before 0.20.1
0.20.1
org.apache.druid:druid
Maven
before 0.20.1, plus listed versions
0.13.0-incubating0.14.0-incubating0.14.1-incubating0.14.2-incubating0.15.0-incubating
Show 9 moreShow less
0.15.1-incubating0.16.0-incubating0.16.1-incubating0.17.00.17.10.18.00.18.10.19.00.20.0
0.20.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
MetasploitApache Druid 0.20.0 Remote Command Execution2021-01-21
NucleiApache Druid - Remote Code Execution
PoC in GitHub1n7erface/PocList2021-03-11
PoC in GitHubCyberCTF/vulhub-apache-druid-cve-2021-256462026-10-08
PoC in GitHubOrmicron/CVE-2021-25646-GUI2021-02-04
PoC in GitHubShadowLance2/Apache-Druid-CVE-2021-25646-Exploit2025-07-06
PoC in GitHubVulnmachines/Apache-Druid-CVE-2021-256462021-02-13
PoC in GitHubgivemefivw/CVE-2021-256462021-04-14
PoC in GitHubgps1949/CVE-2021-256462025-03-12
PoC in GitHubj2ekim/CVE-2021-256462021-12-12
Show 5 moreShow less
Public exploits
SourceLinkDate
PoC in GitHubk7pro/CVE-2021-25646-exp2024-10-04
PoC in GitHublp008/CVE-2021-256462021-02-03
PoC in GitHubshahdawadfallah-sys/Cybersecurity-Capstone-Project2026-07-11
PoC in GitHubtiemio/RCE-PoC-CVE-2021-256462025-05-08
PoC in GitHubyaunsky/cve-2021-256462021-02-03

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, Metasploit, Nuclei, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-25646 is a high vulnerability (CVSS 8.8) in Apache Druid, published January 29, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 99.1%, the 99th percentile. Fixed in org.apache.druid:druid 0.20.1.

References

Show 25 moreShow less
MoveEnter Open