Skip to content
OpenAdvisories
Medium · 6.5 Scanner template Public exploit CVE-2021-36749 EUVD-2021-2026GHSA-9p5g-vg43-mj5r

Apache Druid: The HTTP inputSource allows authenticated users to read data from other sources than intended (incomplete fix of CVE-2021-26920)

Published Sep 24, 2021 · Updated Aug 4, 2024 · Assigned by apache

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. 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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Druid 0.21.1 and earlier – ≤ 0.21.1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 4 repositories

  • sma11new/PocList ★ 177 · May 22, 2021

    漏洞POC、EXP合集,持续更新。Apache Druid-任意文件读取(CVE-2021-36749)、ConfluenceRCE(CVE-2021-26084)、ZeroShell防火墙RCE(CVE-2019-12725)、ApacheSolr任意文件读取、蓝凌OA任意文件读取、phpStudyRCE、ShowDoc任意文件上传、原创先锋后台未授权、Kyan账号密码泄露、TerraMast…

  • BrucessKING/CVE-2021-36749 ★ 33 · Oct 14, 2021

    Apache Druid 任意文件读取

  • zwlsix/apache_druid_CVE-2021-36749 ★ 1 · Nov 21, 2021

    CVE-2021-36749 Docker 漏洞复现

  • Jun-5heng/CVE-2021-36749 ★ 0 · Dec 12, 2021

    Apache Druid LoadData 任意文件读取漏洞 / Code By:Jun_sheng

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.druid:druid-core < 0.22.0 0.22.0 GHSA-9p5g-vg43-mj5r

References