Vulnerabilities in pkg:maven/org.apache.shiro/shiro-root

PACKAGE
Advisory Identifier: GHSA-3jx9-mgwx-4q83
Advisory Summary

CVE-2010-3863 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Shiro root libraries in the Maven ecosystem. The issue involves apache shiro path traversal vulnerability. Remediation is available by upgrading affected packages to version 1.1.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.shiro/shiro-root

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.shiro/shiro-root. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3jx9-mgwx-4q83 CVE-2010-3863 MODERATE Apache Shiro Path Traversal vulnerability
GHSA-7cxr-h8wm-fg4c CVE-2023-22602 HIGH Apache Shiro Interpretation Conflict vulnerability

CVE-2010-3863 at a Glance

CVE Identifier CVE-2010-3863
GHSA Identifier GHSA-3jx9-mgwx-4q83
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Shiro root
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2010-3863

To remediate this vulnerability, upgrade all affected Shiro root 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-root fixed: 1.1.0
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-root</artifactId>
    <version>1.1.0</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-2010-3863, 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 root in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Shiro root, 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.1.0, and JSecurity 0.9.x, does not canonicalize URI paths before comparing them to entries in the shiro.ini file, which allows remote attackers to bypass intended access restrictions via a crafted request, as demonstrated by the /./account/index.jsp URI.

CVE-2010-3863 Affected Shiro root Versions

1 component(s)
Fixed Versions:
1.1.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.shiro:shiro-root
Maven
< 1.1.0
1.1.0

References

Frequently Asked Questions

What is CVE-2010-3863?
CVE-2010-3863 is a security vulnerability in Shiro root involving Apache Shiro Path Traversal vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Shiro root versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: org.apache.shiro:shiro-root.
What version fixes CVE-2010-3863?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shiro-root affected?
Yes, org.apache.shiro:shiro-root is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What CWE is associated with CVE-2010-3863?
CVE-2010-3863 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Maven dependencies for CVE-2010-3863?
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-3jx9-mgwx-4q83",
  "modified" : "2024-02-07T22:57:26Z",
  "published" : "2022-05-14T02:42:51Z",
  "aliases" : [ "CVE-2010-3863" ],
  "summary" : "Apache Shiro Path Traversal vulnerability",
  "details" : "Apache Shiro before 1.1.0, and JSecurity 0.9.x, does not canonicalize URI paths before comparing them to entries in the shiro.ini file, which allows remote attackers to bypass intended access restrictions via a crafted request, as demonstrated by the /./account/index.jsp URI.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.shiro:shiro-root"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-3863"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/62959"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/shiro"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20101120091718/http://www.vupen.com/english/advisories/2010/2888"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20101129043410/http://secunia.com/advisories/41989"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20110929165859/http://www.securityfocus.com/bid/44616"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20161017000748/http://www.securityfocus.com/archive/1/514616/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://archives.neohapsis.com/archives/fulldisclosure/2010-11/0020.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-07T22:57:26Z",
    "nvd_published_at" : "2010-11-05T17:00:00Z"
  }
}