Bug 2007715 (CVE-2021-36749)

Summary: CVE-2021-36749 druid: HTTP InputSource allows authenticated users to read data from other sources (incomplete fix of CVE-2021-26920)
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, bmontgom, eparis, jburrell, jokerman, nstielau, sd-operator-metering, sponnaga, tflannag, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: druid 0.22.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in druid. 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. The highest threat from this vulnerability is to data confidentiality. This vulnerability exists due to incomplete fix of CVE-2021-26920.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-08 20:08:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2007716    

Description Guilherme de Almeida Suckevicz 2021-09-24 16:57:09 UTC
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.

References:
https://www.openwall.com/lists/oss-security/2021/09/24/1
https://lists.apache.org/thread.html/r304dfe56a5dfe1b2d9166b24d2c74ad1c6730338b20aef77a00ed2be@%3Cannounce.apache.org%3E

Comment 1 Przemyslaw Roguski 2021-10-08 15:41:41 UTC
Upstream fix:
https://github.com/apache/druid/commit/9946306d4b2c16a7fc8bac97c9f4815ed4b46570

Comment 2 Product Security DevOps Team 2021-10-08 20:08:15 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-36749