CVE-2021-26919 Apache Druid Authenticated users can execute arbitrary code from malicious MySQL database systems.
Authenticated users can execute arbitrary code on Apache Druid servers by connecting to a malicious MySQL database via JDBC.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-26919?
CVE-2021-26919 is a high-severity code injection vulnerability in Apache Druid, published on 30 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Apache Druid allows users to read data from other database systems using JDBC. This functionality is to allow trusted users with the proper permissions to set up lookups or submit ingestion tasks. The MySQL JDBC driver supports certain properties, which, if left unmitigated, can allow an attacker to execute arbitrary code from a hacker-controlled malicious MySQL server within Druid server processes. This issue was addressed in Apache Druid 0.20.2
Which versions are affected by CVE-2021-26919?
2 open source packages ship an affected version, including org.apache.druid:druid. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.druid:druid Maven | All versions | 0.20.2 |
org.apache.druid:druid Maven | All versions | 0.20.2 |
Products include Apache Druid.
How do I fix CVE-2021-26919?
Upgrade org.apache.druid:druid to 0.20.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-26919 being exploited?
There is no known exploitation of CVE-2021-26919 in the wild and no public exploit code.
Other vulnerabilities in Apache Druid
- CVE-2026-23906 Apache Druid: Authentication Bypass via LDAP Anonymous Bind
- CVE-2025-59390 Apache Druid: Kerberos authenticaton chooses a cryptographically unsecure secret if not configured explicitly.
- CVE-2021-25646 Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.
- CVE-2024-45537 Apache Druid: Users can provide MySQL JDBC properties not on allow list
- CVE-2021-36749 Druid ingestion system Authenticated users can read data from other sources than intended
Sources
Also known as GHSA-jj4f-p7vv-j4v9.