Authorization Bypass Vulnerability in Apache Shiro - CVE-2022-32532

shiro Updated 02 Oct 2025

Summary

29/06/2022
N/A
No i
Critical
9.8

CVE-2022-32532: Apache Shiro before 1.9.1, A RegexRequestMatcher can be misconfigured to be bypassed on some servlet containers. Affects shiro versions < 2b532117ac341a47c27ea8c17262e79fe54aee32. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache Shiro is a powerful and flexible open-source security framework that handles authentication, authorization, cryptography, and session management for Java applications. It is widely used for securing web applications and services. The vulnerability CVE-2022-32532 affects versions prior to 1.9.1, where a misconfiguration in the RegexRequestMatcher can lead to an authorization bypass, potentially exposing sensitive resources to unauthorized users.

Vulnerability Detail

The vulnerability arises from the improper configuration of the RegexRequestMatcher in Apache Shiro, particularly when using regular expressions that include a dot (.) character. This misconfiguration can allow attackers to bypass authorization checks in certain servlet containers, leading to unauthorized access to protected resources. The potential ramifications include exposure of sensitive data and functionalities, which could be exploited by malicious actors.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading is not immediately possible, consider reviewing and modifying your regular expressions used in RegexRequestMatcher to avoid using the dot (.) character, which can lead to misconfigurations. Ensure that your authorization checks are robust and do not rely solely on regex patterns that may be bypassed.

Conclusion

CVE-2022-32532 represents a significant security risk for applications using Apache Shiro versions prior to 1.9.1. It is crucial for developers and system administrators to upgrade to the latest version to mitigate the risk of unauthorized access. Additionally, reviewing regex configurations can help prevent potential exploitation.

See every vulnerability recorded for shiro →

Share this vulnerability

FAQ

CVE-2022-32532 is a vulnerability in Apache Shiro that allows for potential authorization bypass due to misconfigured RegexRequestMatcher.

Versions of Apache Shiro prior to 1.9.1 are affected by this vulnerability.

The vulnerability can lead to unauthorized access to sensitive resources, potentially exposing critical data and functionalities.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2022-32532 is 9.8, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for shiro.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback