CVE-2023-34478 Path Traversal in Apache Shiro

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
org.apache.shiro:shiro-web MavenAll versions1.12.0
org.apache.shiro:shiro-web MavenAll versions1.12.0
org.apache.shiro:shiro-web MavenFrom 2.0.0-alpha-12.0.0-alpha-3
org.apache.shiro:shiro-web MavenFrom 2.0.0-alpha-12.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.

Sources

Also known as DEBIAN-CVE-2023-34478, GHSA-pmhc-2g4f-85cg, UBUNTU-CVE-2023-34478.

Is CVE-2023-34478 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free