CVE-2016-6802: Shiro all Improper Access Control Vulnerability

HIGH
Advisory Identifier: GHSA-4q2v-j639-cp7p
CVSS 7.5
CWE-284
Published
Advisory Summary

CVE-2016-6802 is a HIGH (CVSS 7.5) improper access control vulnerability (CWE-284: Improper Access Control) affecting Shiro all libraries in the Maven ecosystem. The issue involves improper access control in apache shiro. Remediation is available by upgrading affected packages to version 1.3.2.

CVE-2016-6802 at a Glance

CVE Identifier CVE-2016-6802
GHSA Identifier GHSA-4q2v-j639-cp7p
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-284: Improper Access Control
Affected Product Shiro all
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2016-6802

To remediate this vulnerability, upgrade all affected Shiro all dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.shiro:shiro-all fixed: 1.3.2
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-all</artifactId>
    <version>1.3.2</version>
</dependency>
org.apache.shiro:shiro-web fixed: 1.3.2
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-web</artifactId>
    <version>1.3.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.shiro

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2016-6802, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.shiro

Analyze the terminal output to locate any version of Shiro all in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.shiro 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Shiro all, 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

Apache Shiro before 1.3.2 allows attackers to bypass intended servlet filters and gain access by leveraging use of a non-root servlet context path.

CVE-2016-6802 Affected Shiro all Versions

2 component(s)
Fixed Versions:
1.3.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.shiro:shiro-all
Maven
< 1.3.2
1.3.2
org.apache.shiro:shiro-web
Maven
< 1.3.2
1.3.2

References

Frequently Asked Questions

What is CVE-2016-6802?
CVE-2016-6802 is a security vulnerability in Shiro all involving Improper Access Control in Apache Shiro under CWE-284: Improper Access Control.
Which Shiro all versions are affected?
Affected versions include releases prior to 1.3.2 across affected packages: org.apache.shiro:shiro-all, org.apache.shiro:shiro-web.
What version fixes CVE-2016-6802?
Upgrading to 1.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shiro-all affected?
Yes, org.apache.shiro:shiro-all is affected in releases prior to 1.3.2. Upgrade your dependency to 1.3.2 or later.
Is shiro-web affected?
Yes, org.apache.shiro:shiro-web is affected in releases prior to 1.3.2. Upgrade your dependency to 1.3.2 or later.
What is the CVSS score of CVE-2016-6802?
CVE-2016-6802 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2016-6802?
CVE-2016-6802 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2016-6802?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.shiro'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4q2v-j639-cp7p",
  "modified" : "2022-11-04T22:45:53Z",
  "published" : "2022-05-14T02:46:12Z",
  "aliases" : [ "CVE-2016-6802" ],
  "summary" : "Improper Access Control in Apache Shiro",
  "details" : "Apache Shiro before 1.3.2 allows attackers to bypass intended servlet filters and gain access by leveraging use of a non-root servlet context path.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.shiro:shiro-all"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.shiro:shiro-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-6802"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/shiro/commit/b15ab927709ca18ea4a02538be01919a19ab65af"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/SHIRO-584"
  }, {
    "type" : "WEB",
    "url" : "https://packetstormsecurity.com/files/138709/Apache-Shiro-Filter-Bypass.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-04T22:45:53Z",
    "nvd_published_at" : "2016-09-20T19:59:00Z"
  }
}