8.8high
Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 99.1% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-wrqf-rrrw-w3mg
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Druid | from 0.20.0 and earlier up to 0.20.0 | CVE List |
| org.apache.druid:druid (Maven) | before 0.20.1 | GitHub Advisory Database |
| apache druid | up to 0.20.0 | NVD |
All scores
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.0high CVSS:2.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
Apache Druid incluye la capacidad de ejecutar código JavaScript proporcionado por el usuario insertado en varios tipos de peticiones. Esta funcionalidad está pensada para su uso en entornos de alta confianza y está deshabilitada por defecto. Sin embargo, en Druid versiones 0.20.0 y anteriores, es posible para un usuario autenticado enviar una petición especialmente diseñada para obligar a Druid a ejecutar código JavaScript proporcionado por el usuario para esa petición, independientemente de la configuración del servidor. Esto puede ser aprovechado para ejecutar código en la máquina objetivo con los privilegios del proceso del servidor Druid
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25646 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wrqf-rrrw-w3mg changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-25646 changed 2026-06-17 | Public domain |