CVE-2021-26919: Arbitrary code execution in Apache Druid

org.apache.druid:druid Updated 02 Oct 2025

Summary

16/06/2021
Yes i
High
8.8

CVE-2021-26919: Arbitrary code execution in Apache Druid. Affects org.apache.druid:druid versions < 0.20.2. Fixed in 0.20.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache Druid is an open-source distributed data store designed for high-performance analytics. It allows users to read data from other database systems using JDBC, enabling trusted users to set up lookups or submit ingestion tasks. The vulnerability in question affects the MySQL JDBC driver used by Apache Druid. If left unmitigated, this vulnerability can allow an attacker to execute arbitrary code from a malicious MySQL server within Druid server processes.

Vulnerability Detail

The vulnerability arises due to certain properties supported by the MySQL JDBC driver. These properties, if not properly handled, can be exploited by an attacker to execute arbitrary code within the Druid server processes. This can lead to unauthorized access, data manipulation, or even complete compromise of the affected system. The issue has been addressed in Apache Druid 0.20.2.

How To Fix

Latest published version: 38.0.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.20.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, applying the recommended fix by upgrading to Apache Druid 0.20.2 or later is the best course of action.

Conclusion

In conclusion, the vulnerability in Apache Druid allows for arbitrary code execution if the MySQL JDBC driver is not properly mitigated. Upgrading to Apache Druid 0.20.2 or later is the recommended solution to address this issue. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.druid:druid →

Share this vulnerability

FAQ

Apache Druid is an open-source distributed data store designed for high-performance analytics. It allows users to read data from other database systems using JDBC.

The vulnerability allows an attacker to execute arbitrary code within the Druid server processes, potentially leading to unauthorized access, data manipulation, or complete compromise of the affected system.

To fix this vulnerability, it is recommended to upgrade to Apache Druid version 0.20.2 or later.

There is no specific workaround mentioned for this vulnerability. Upgrading to the fixed version is the recommended solution.

You can find more information about this vulnerability in the Apache Druid advisory: [link to advisory]

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.druid:druid.

How To Fix

Latest published version: 38.0.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.20.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback