CVE-2021-26919: Arbitrary code execution in Apache Druid
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.