CVE-2023-46749 Apache Shiro vulnerable to path traversal

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
org.apache.shiro:shiro-core MavenAll versions1.13.0
org.apache.shiro:shiro-core MavenAll versions1.13.0
org.apache.shiro:shiro-core MavenFrom 2.0.0alpha12.0.0-alpha4
org.apache.shiro:shiro-core MavenFrom 2.0.0alpha12.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.

Sources

Also known as CLEANSTART-2026-WR37412, DEBIAN-CVE-2023-46749, GHSA-jc7h-c423-mpjc, UBUNTU-CVE-2023-46749.

Is CVE-2023-46749 in your software?

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

Check your SBOMs for free