Skip to content

Code injection in Apache Druid

High severity GitHub Reviewed Published Jun 16, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

maven org.apache.druid:druid (Maven)

Affected versions

< 0.20.1

Patched versions

0.20.1

Description

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.

References

Published by the National Vulnerability Database Jan 29, 2021
Reviewed Apr 5, 2021
Published to the GitHub Advisory Database Jun 16, 2021
Last updated Feb 1, 2023

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2021-25646

GHSA ID

GHSA-wrqf-rrrw-w3mg

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.