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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 80.91% (percentile 100, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-9p5g-vg43-mj5r
- **Published:** 2021-09-24T09:30:11.000Z
- **Modified:** 2026-06-17T03:59:06.370Z

## Who should check

- Projects that depend on Maven package org.apache.druid:druid-core (\< 0.22.0)
- Anyone running Apache Software Foundation Apache Druid \>= 0.21.1 and earlier, \<= 0.21.1

## 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 and fixed versions

- Maven `org.apache.druid:druid-core`: affected \< 0.22.0; fixed 0.22.0 (osv)
- Apache Software Foundation Apache Druid: \>= 0.21.1 and earlier, \<= 0.21.1 (cvelist)

## Mitigation

- Upgrade org.apache.druid:druid-core to 0.22.0 or later.
- Vendor workaround: 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-36749. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-36749.md
Affected: org.apache.druid:druid-core < 0.22.0
Fixed in: 0.22.0

Steps:
1. Search this machine and project for org.apache.druid:druid-core (Maven), Apache Software Foundation Apache Druid: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-36749 being exploited?

There is no confirmed exploitation: CVE-2021-36749 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 80.91% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-36749?

Medium: CVSS 6.5 (v3.1, scored by NVD). Remote, login needed.

### Which versions are affected by CVE-2021-36749?

org.apache.druid:druid-core \< 0.22.0.

### Is there a fix for CVE-2021-36749?

Yes. Fixed in 0.22.0. Upgrade org.apache.druid:druid-core to 0.22.0 or later. Vendor workaround: 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.

### How do I check if I'm affected by CVE-2021-36749?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread.html/rc9400a70d0ec5cdb8a3486fc5ddb0b5282961c0b63e764abfbcb9f5d%40%3Cdev.druid.apache.org%3E>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-36749>
- vendor: <https://github.com/advisories/GHSA-793h-6f7r-6qvm>
- other: <https://lists.apache.org/thread.html/r304dfe56a5dfe1b2d9166b24d2c74ad1c6730338b20aef77a00ed2be%40%3Cannounce.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r304dfe56a5dfe1b2d9166b24d2c74ad1c6730338b20aef77a00ed2be@%3Cannounce.apache.org%3E>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-36749>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9p5g-vg43-mj5r> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-36749> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-36749>
