CVE-2016-8746: Ranger plugins common Apache Ranger Policy Engine Incorrectly Vulnerability
MODERATECVE-2016-8746 is a MODERATE (CVSS 5.9) apache ranger policy engine incorrectly vulnerability (CWE-426: Untrusted Search Path) affecting Ranger plugins common libraries in the Maven ecosystem. The issue involves apache ranger policy engine incorrectly matches paths in certain conditions. Remediation is available by upgrading affected packages to version 0.6.3.
CVE-2016-8746 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2016-8746
To remediate this vulnerability, upgrade all affected Ranger plugins common dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-plugins-common</artifactId>
<version>0.6.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.ranger
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2016-8746, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.ranger
Analyze the terminal output to locate any version of Ranger plugins common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.3), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.ranger command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. In Ranger plugins common, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-8746 Affected Ranger plugins common Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.ranger:ranger-plugins-common
|
Maven |
< 0.6.3
|
0.6.3
|
References
Frequently Asked Questions
What is CVE-2016-8746?
Which Ranger plugins common versions are affected?
What version fixes CVE-2016-8746?
Is ranger-plugins-common affected?
What is the CVSS score of CVE-2016-8746?
What CWE is associated with CVE-2016-8746?
How can I check Maven dependencies for CVE-2016-8746?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xv7x-x6wr-xx7g",
"modified" : "2023-11-21T11:56:13Z",
"published" : "2018-10-17T17:22:05Z",
"aliases" : [ "CVE-2016-8746" ],
"summary" : "Apache Ranger policy engine incorrectly matches paths in certain conditions",
"details" : "Apache Ranger before 0.6.3 policy engine incorrectly matches paths in certain conditions when policy does not contain wildcards and has recursion flag set to true.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.ranger:ranger-plugins-common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-8746"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/ranger/commit/2fcd7f7cc175c0734443638b99c359e24c0f88ff"
}, {
"type" : "WEB",
"url" : "https://cwiki.apache.org/confluence/display/RANGER/Vulnerabilities+found+in+Ranger"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-xv7x-x6wr-xx7g"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/95998"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-426" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T22:04:33Z",
"nvd_published_at" : null
}
}