CVE-2023-34478 Path Traversal in Apache Shiro
Attackers can bypass authentication via path traversal when Apache Shiro is used with frameworks routing non-normalized requests.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-34478?
CVE-2023-34478 is a critical path traversal vulnerability in Apache Shiro, published on 24 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Apache Shiro, before 1.12.0 or 2.0.0-alpha-3, may be susceptible to a path traversal attack that results in an authentication bypass when used together with APIs or other web frameworks that route requests based on non-normalized requests.
Mitigation: Update to Apache Shiro 1.12.0+ or 2.0.0-alpha-3+
Weakness: CWE-22
Which versions are affected by CVE-2023-34478?
4 open source packages ship an affected version, including org.apache.shiro:shiro-web. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.shiro:shiro-web Maven | All versions | 1.12.0 |
org.apache.shiro:shiro-web Maven | All versions | 1.12.0 |
org.apache.shiro:shiro-web Maven | From 2.0.0-alpha-1 | 2.0.0-alpha-3 |
org.apache.shiro:shiro-web Maven | From 2.0.0-alpha-1 | 2.0.0-alpha-3 |
Products include Apache Shiro.
How do I fix CVE-2023-34478?
Upgrade org.apache.shiro:shiro-web to a fixed version for your release line: 1.12.0 or 2.0.0-alpha-3.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-34478 being exploited?
There is no known exploitation of CVE-2023-34478 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities 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
- CVE-2020-17510 Authentication bypass in Apache Shiro
Sources
Also known as DEBIAN-CVE-2023-34478, GHSA-pmhc-2g4f-85cg, UBUNTU-CVE-2023-34478.