title: Apache Druid Authenticated users can execute arbitrary code from malicious MySQL database systems.
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
problem types: Remote code execution
affected:
{
product: Apache Druid
vendor: Apache Software Foundation
versions:
lessThanOrEqual: 0.20.1, status: affected, version: Apache Druid, versionType: custom
}
workarounds: Users should upgrade to Druid 0.20.2 and enable new Druid configurations to mitigate vulnerable MySQL JDBC properties.
Whenever possible, network access to cluster machines should be restricted to trusted hosts only.
Ensure that users have the minimum set of Druid permissions necessary, and are not granted access to functionality that they do not require.