CVE-2022-32532: Improper Authorization in Apache Shiro
Summary
CVE-2022-32532: Improper Authorization in Apache Shiro. Affects org.apache.shiro:shiro-core versions < 1.9.1. Fixed in 1.9.1. How to fix ↓
Also tracked for
- shiro · Debian:11
The same CVE-2022-32532 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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.
No signup required · Results in about 60 seconds
Background
Apache Shiro is a powerful and easy-to-use Java security framework that provides authentication, authorization, cryptography, and session management capabilities. It is widely used in Java applications to secure sensitive resources and protect against unauthorized access. However, a vulnerability has been discovered in Apache Shiro before version 1.9.1 that could allow an attacker to bypass authorization controls. This vulnerability affects the 'org.apache.shiro:shiro-core' package in the Maven ecosystem.
Vulnerability Detail
The vulnerability, identified as CVE-2022-32532, stems from a misconfiguration in the RegexRequestMatcher of Apache Shiro. In certain servlet containers, a RegexRequestMatcher can be bypassed if it is misconfigured. Applications that use the RegExPatternMatcher with a regular expression containing a dot ('.') are potentially vulnerable to an authorization bypass. This means that an attacker could potentially gain unauthorized access to protected resources or perform actions that should be restricted.
How To Fix
Latest published version: 3.0.1 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.9.1
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of Apache Shiro to mitigate the risk of an authorization bypass.
Conclusion
The vulnerability in Apache Shiro before version 1.9.1 could allow an attacker to bypass authorization controls, potentially leading to unauthorized access to protected resources. It is crucial to upgrade to the fixed version to mitigate this risk. For further assistance with vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.shiro:shiro-core →
FAQ
Apache Shiro is a Java security framework that provides authentication, authorization, cryptography, and session management capabilities for applications.
This vulnerability could allow an attacker to bypass authorization controls and gain unauthorized access to protected resources or perform restricted actions.
To fix this vulnerability, upgrade to Apache Shiro version 1.9.1 or later by updating the 'org.apache.shiro:shiro-core' package in your Maven project.
No, there is no known workaround for this vulnerability. Upgrading to the fixed version is the recommended solution.
You can find more information about Apache Shiro on the official Apache Shiro website or the project's GitHub repository.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.shiro:shiro-core.