CVE-2023-46749 — shiro-core
MEDIUMCVE-2023-46749 is a medium-severity (CVSS 6.5) Path Traversal vulnerability in org.apache.shiro:shiro-core. A fix is available for org.apache.shiro:shiro-core — see the affected versions and patch details below.
Apache Shiro before 1.13.0 or 2.0.0-alpha-4, may be susceptible to a path traversal attack that results in an authentication bypass when used together with path rewriting
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2023-46749.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.shiro:shiro-core☕org.apache.shiro:shiro-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Apache Shiro before 1.13.0 or 2.0.0-alpha-4, may be susceptible to a path traversal attack that results in an authentication bypass when used together with path rewriting
Mitigation: Update to Apache Shiro 1.13.0+ or 2.0.0-alpha-4+, or ensure blockSemicolon is enabled (this is the default).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.shiro:shiro-core | all versions | 1.13.0org.apache.shiro:shiro-core:1.13.0 |
| ☕Maven | org.apache.shiro:shiro-core | ≥ 2.0.0alpha1&&< 2.0.0-alpha4 | 2.0.0-alpha4org.apache.shiro:shiro-core:2.0.0-alpha4 |
Affected Products
shiroapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.shiro:shiro-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.shiro:shiro-core to 1.13.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-46749 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This flaw can be mitigated by making sure 'blockSemicolon' is enabled.Source: Red Hat security advisory for CVE-2023-46749 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Fuse 7.13.0 | shiro | RHSA-2024:3354 |
Frequently Asked Questions
Is CVE-2023-46749 in your dependencies?
Find it across Maven, including transitive dependencies.