# CVE-2021-25646: Code injection in Apache Druid

Source: https://junglewise.ai/threats/cve-2021-25646-code-injection-in-apache-druid  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-06-16  
License: CC BY 4.0 with a link back

CVE-2021-25646 · Severity: low · CVSS 3.1 · Published 2021-06-16

Code injection in Apache Druid

Technologies: [org.apache.druid:druid (Maven)](https://junglewise.ai/threats/technologies/org-apache-druid-druid). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-25646 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-25646 being exploited in the wild.

**How severe is CVE-2021-25646?** Low severity, with a CVSS score of 3.1, published 16 June 2021.

**Which products and versions are affected?** org.apache.druid:druid (Maven) ECOSYSTEM:introduced=0,fixed=0.20.1.

**Is there a fix for CVE-2021-25646?** Yes. org.apache.druid:druid (Maven): upgrade to 0.20.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-25646?** Check whether you run org.apache.druid:druid (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.druid:druid (Maven): upgrade to 0.20.1 or later

  ```sh
  # set org.apache.druid:druid to 0.20.1 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.druid:druid (Maven) ECOSYSTEM:introduced=0,fixed=0.20.1

## Identifiers

- CVE-2021-25646
- GHSA-wrqf-rrrw-w3mg

## Related threats

- [Apache Druid’s Kerberos authenticator uses a weak fallback secret](https://junglewise.ai/threats/cve-2025-59390-apache-druid-s-kerberos-authenticator-uses-a-weak-fallback-secret)
- [Apache Druid vulnerable to Server-Side Request Forgery, Cross-site Scripting, Open Redirect](https://junglewise.ai/threats/cve-2025-27888-apache-druid-vulnerable-to-server-side-request-forgery-cross-site)
- [Apache Druid: Users can provide MySQL JDBC properties not on allow list](https://junglewise.ai/threats/cve-2024-45537-apache-druid-users-can-provide-mysql-jdbc-properties-not-on-allow)
- [Apache Druid before 0.23.0 vulnerable to reflected XSS via unescaped URL parameters](https://junglewise.ai/threats/cve-2021-44791-apache-druid-before-0-23-0-vulnerable-to-reflected-xss-via)
- [Apache Druid before 0.23.0 vulnerable to clickjacking](https://junglewise.ai/threats/cve-2022-28889-apache-druid-before-0-23-0-vulnerable-to-clickjacking)
