6.5medium
Apache Druid: The HTTP inputSource allows authenticated users to read data from other sources than intended
- Severity
- 6.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 9.50% (higher than 95% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-793h-6f7r-6qvmGHSA-x3cc-x39p-42qx
Description
In the Druid ingestion system, the InputSource is used for reading data from a certain data source. However, the HTTP InputSource allows authenticated users to read data from other sources than intended, such as the local file system, with the privileges of the Druid server process. This is not an elevation of privilege when users access Druid directly, since Druid also provides the Local InputSource, which allows the same level of access. But it is problematic when users interact with Druid indirectly through an application that allows users to specify the HTTP InputSource, but not the Local InputSource. In this case, users could bypass the application-level restriction by passing a file URL to the HTTP InputSource.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Druid | from Apache Druid up to 0.20.2 | CVE List |
| org.apache.druid:druid-core (Maven) | before 0.21.0 | GitHub Advisory Database |
| fast-xml-parser (npm) | before 4.1.2 | GitHub Advisory Database |
| apache druid | before 0.22.0 | NVD |
All scores
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Classification
What each source says
CVE List
In the Druid ingestion system, the InputSource is used for reading data from a certain data source. However, the HTTP InputSource allows authenticated users to read data from other sources than intended, such as the local file system, with the privileges of the Druid server process. This is not an elevation of privilege when users access Druid directly, since Druid also provides the Local InputSource, which allows the same level of access. But it is problematic when users interact with Druid indirectly through an application that allows users to specify the HTTP InputSource, but not the Local InputSource. In this case, users could bypass the application-level restriction by passing a file URL to the HTTP InputSource.
GitHub Advisory Database
Impact
As a part of this vulnerability, user was able to se code using __proto__ as a tag or attribute name.
const { XMLParser, XMLBuilder, XMLValidator} = require("fast-xml-parser");
let XMLdata = "<__proto__><polluted>hacked</polluted></__proto__>"
const parser = new XMLParser();
let jObj = parser.parse(XMLdata);
console.log(jObj.polluted) // should return hacked
Patches
The problem has been patched in v4.1.2
Workarounds
User can check for "proto" in the XML string before parsing it to the parser.
References
https://gist.github.com/Sudistark/a5a45bd0804d522a1392cb5023aa7ef7
NVD (es)
En el sistema de ingestión de Druid, el InputSource es usado para leer datos de una determinada fuente de datos. Sin embargo, el HTTP InputSource permite a usuarios autenticados leer datos de otras fuentes distintas a las previstas, como el sistema de archivos local, con los privilegios del proceso del servidor Druid. Esto no es una elevación de privilegios cuando unos usuarios acceden a Druid directamente, ya que Druid también proporciona el InputSource Local, que permite el mismo nivel de acceso. Pero es problemático cuando unos usuarios interactúan con Druid indirectamente mediante una aplicación que permite a usuarios especificar el HTTP InputSource, pero no el Local InputSource. En este caso, unos usuarios podrían omitir la restricción a nivel de aplicación pasando una URL de archivo al HTTP InputSource
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-26920 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-793h-6f7r-6qvm changed 2026-07-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-x3cc-x39p-42qx changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-26920 changed 2026-06-17 | Public domain |