Privilege escalationin Apache Druid.
Weaponized: a Nuclei exploit is public.
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. This issue was previously mentioned as being fixed in 0.21.0 as per CVE-2021-26920 but was not fixed in 0.21.0 or 0.21.1.
- Upgrade org.apache.druid:druid-core (Maven) to 0.22.0 or later.
- Can't upgrade today? Users can avoid the issue by upgrading to 0.22.0 or a higher version. In an earlier version than 0.22.0, when the user application wants to restrict the access to the local file system, it should disallow all InputSources that can read local files, that is the Local, HTTP, and HDFS InputSources.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 22 May 2021First public proof of concept on GitHub.
- 15 Jul 2021CVE ID reserved by apache.
- 24 Sep 2021Published in the CVE List.
- 4 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Nuclei).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Druid vulnerabilities
- lists.apache.org x_refsource_MISC
- lists.apache.org mailing-list, x_refsource_MLIST
Patchminder. CVE-2021-36749: Privilege escalation in Apache Druid. https://patchminder.com/cve/cve-2021-36749/ (accessed 5 December 2026).