CVE-2023-34478: Path Traversal in Apache Shiro
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.11882%
CWE
Published
7/24/2023
Updated
2/13/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.apache.shiro:shiro-web | maven | < 1.12.0 | 1.12.0 |
| org.apache.shiro:shiro-web | maven | >= 2.0.0-alpha-1, < 2.0.0-alpha-3 | 2.0.0-alpha-3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing path traversal checks in request validation. The patch added: 1) containsTraversal() with isNormalized() path checks, 2) FORWARDSLASH and PERIOD pattern detection, and 3) blockTraversal configuration. Pre-patch versions lacked these protections in the validation flow executed by isValid() and isAccessAllowed(). The test cases in InvalidRequestFilterTest.groovy confirm these functions were vulnerable to various traversal payloads before the patch.