CVE-2023-46749 Apache Shiro vulnerable to path traversal
Attackers can bypass authentication via path traversal when path rewriting is enabled in Apache Shiro.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-46749?
CVE-2023-46749 is a medium-severity authentication bypass vulnerability in Apache Shiro, published on 15 Jan 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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).
Weakness: CWE-22
Which versions are affected by CVE-2023-46749?
4 open source packages ship an affected version, including org.apache.shiro:shiro-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.shiro:shiro-core Maven | All versions | 1.13.0 |
org.apache.shiro:shiro-core Maven | All versions | 1.13.0 |
org.apache.shiro:shiro-core Maven | From 2.0.0alpha1 | 2.0.0-alpha4 |
org.apache.shiro:shiro-core Maven | From 2.0.0alpha1 | 2.0.0-alpha4 |
Products include Apache Shiro.
How do I fix CVE-2023-46749?
Upgrade org.apache.shiro:shiro-core to a fixed version for your release line: 1.13.0 or 2.0.0-alpha4.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2023-46749 being exploited?
There is no known exploitation of CVE-2023-46749 in the wild and no public exploit code.
Other vulnerabilities in Apache Shiro
- CVE-2023-34478 Path Traversal in Apache Shiro
- CVE-2022-40664 Authentication Bypass Vulnerability in Shiro when forwarding or including via RequestDispatcher
- CVE-2022-32532 Authentication Bypass Vulnerability
- CVE-2021-41303 Apache Shiro vulnerable to a specially crafted HTTP request causing an authentication bypass
- CVE-2020-17523 Authentication bypass in Apache Shiro
Sources
Also known as CLEANSTART-2026-WR37412, DEBIAN-CVE-2023-46749, GHSA-jc7h-c423-mpjc, UBUNTU-CVE-2023-46749.