High

Code injection in Apache Druid

  • Disclosed: 16.06.2021
  • Updated: 11.10.2026 11:21

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.druid:druid < 0.20.1 0.20.1

References

CVSS score 8.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-732
Platform
Java / Kotlin (Maven)
Package
org.apache.druid:druid
Disclosed
16.06.2021
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-wrqf-rrrw-w3mg - CC BY 4.0

Vulnerability history: org.apache.druid:druid

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
06.2021 11.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 2
  • Medium 4
  • Low 1

Disclosures per year

  1. 2021: 2
  2. 2022: 3
  3. 2023: 0
  4. 2024: 1
  5. 2025: 2
  6. 2026: 0
  1. Critical · 9.8 CVE-2025-59390 < 35.0.0 35.0.0
  2. Medium · 5.4 CVE-2025-27888 < 31.0.2, >= 32.0.0, < 32.0.1 31.0.2, 32.0.1
  3. Medium · 4.3 CVE-2022-28889 < 0.23.0 0.23.0
  4. Medium · 6.5 CVE-2020-1958 >= 0.17.0, < 0.17.1 0.17.1
  5. High · 8.8 CVE-2021-26919 < 0.20.2 0.20.2
  6. Code injection in Apache Druid this entry
    High · 8.8 CVE-2021-25646 < 0.20.1 0.20.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.