patchminder
Weaponized · Nuclei CVE-2021-36749

Privilege escalationin Apache Druid.

Published 24 Sep 2021 · Updated 4 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
Medium 6.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 80.9% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 0.22.0 or later
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Druid
0.21.1 and earlier
Not confirmed
CVE record
org.apache.druid:druid-core (Maven)
before 0.22.0
0.22.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 22 May 2021
    First public proof of concept on GitHub.
  2. 15 Jul 2021
    CVE ID reserved by apache.
  3. 24 Sep 2021
    Published in the CVE List.
  4. 4 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei).

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
4 repositories
NucleiApache Druid · Local File Inclusiondetection template
GitHubno warning signs foundsma11new/PocList177 stars · created 22 May 2021漏洞POC、EXP合集,持续更新。Apache Druid-任意文件读取(CVE-2021-36749)、ConfluenceRCE(CVE-2021-26084)、ZeroShell防火墙RCE(CVE-2019-12725)、ApacheSolr任意文件读
GitHubno warning signs foundBrucessKING/CVE-2021-3674933 stars · created 14 Oct 2021Apache Druid 任意文件读取
GitHubno warning signs foundzwlsix/apache_druid_CVE-2021-367491 stars · created 21 Nov 2021CVE-2021-36749 Docker 漏洞复现
GitHubno warning signs foundJun-5heng/CVE-2021-367490 stars · created 12 Dec 2021Apache Druid LoadData 任意文件读取漏洞 / Code By:Jun_sheng

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.

Related

Other Druid vulnerabilities

References
Cite this page

Patchminder. CVE-2021-36749: Privilege escalation in Apache Druid. https://patchminder.com/cve/cve-2021-36749/ (accessed 5 December 2026).