CVE-2021-25646Druid Code Injection
druid: Authenticated javascript code injection
Published Jan 29, 2021 · Updated Oct 24, 2026 · Also known as GHSA-wrqf-rrrw-w3mg, TR-21-0091
Key Facts
Patch immediately- CVE-2021-25646 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Druid (Apache), org.apache.druid:druid (maven).
- It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Oct 14, 2023. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 99% probability of exploitation in the next 30 days.
- Fixed versions are available, including Druid <=0.20.0, org.apache.druid:druid 0.20.1, Druid 0.20.0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
99%
Higher than 99.9% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
81/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Oct 14, 2023
988 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
13
Reports of active use
Advisories And Exploit References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-25646
- advisoryGHSA advisory
- advisoryhttps://lists.apache.org/thread.html/r20e0c3b10ae2c05a3aad40f1476713c45bdefc32c920b9986b941d8f@%3Cannounce.apache.org%3E
- advisoryhttps://lists.apache.org/thread.html/r64431c2b97209f566b5dff92415e7afba0ed3bfab4695ebaa8a62e5d@%3Cdev.druid.apache.org%3E
- advisoryhttps://lists.apache.org/thread.html/rc167d5e57f3120578718a7a458ce3e73b3830ac4efbb1b085bd06b92@%3Cdev.druid.apache.org%3E
- advisoryhttps://lists.apache.org/thread.html/rfda8a3aa6ac06a80c5cbfdeae0fc85f88a5984e32ea05e6dda46f866%40%3Cdev.druid.apache.org%3E
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CIRCL KEV | Oct 14, 2023 | n/a | Not reported |
| Industry KEV feed | Oct 14, 2023 | n/a | Not reported |
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| DruidApache | >= 0.20.0 and earlier | 0.20.0 |
| org.apache.druid:druidmaven | See advisory | 0.20.1 |
Patched Releases
Druid
<=0.20.0
org.apache.druid:druid
0.20.1
Timeline
Publicly disclosed
Jan 29, 2021
Added to CIRCL KEV
Oct 14, 2023
Added to Industry KEV feed
Oct 14, 2023
Last updated
Oct 24, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code
- CWE-732 Incorrect Permission Assignment for Critical Resource
References
- advisorynvd.nist.gov · CVE-2021-25646
- advisoryGHSA advisory
- advisorylists.apache.org · r20e0c3b10ae2c05a3aad40f1476713c45bdefc32c920b9…
- advisorylists.apache.org · r64431c2b97209f566b5dff92415e7afba0ed3bfab4695e…
- advisorylists.apache.org · rc167d5e57f3120578718a7a458ce3e73b3830ac4efbb1b…
FAQ
Common Questions.
Apache Druid includes the ability to execute user-provided JavaScript code embedded in various types of requests.
Affected: Druid (Apache) versions >= 0.20.0 and earlier; org.apache.druid:druid (maven). The full list is in the CVE brief.
It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Oct 14, 2023.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including Druid <=0.20.0, org.apache.druid:druid 0.20.1, Druid 0.20.0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2021-25646 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo