Apache Shiro: Authorization annotations not always enforced, depending on where they are placed
- CVE-2026-74763
- GHSA-wpcf-j6j4-3pq6
- EUVD-2026-126383
Description
Authorization annotations, such as @RequiresRoles and @RequiresPermissions, are not always enforced in some class or interface hierarchies. Annotations declared on an interface were not enforced when using the shiro-guice, shiro-aspectj, shiro-cdi or shiro-jakarta-ee modules. In addition, annotations declared on a class or a superclass were not always enforced when using shiro-guice or shiro-aspectj, allowing an unauthorized caller to invoke methods that should be protected. This issue affects all Apache Shiro versions through 3.0.1, with impact depending on module and where annotations are declared. Mitigation: Upgrade to version 3.0.2 or later, which fixes the issue. The annotation closest to the invoked method now takes precedence. Alternatively, declare authorization annotations directly on each protected implementing method.
Text from the CVE.org record.
Recommendation
Apache Software Foundation Apache Shiro
- If you run a version before 3.0.2update to 3.0.2 or later
- If you run a version from 2.0.0-alpha-0 to before 3.0.2update to 3.0.2 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Apache Software Foundation Apache Shiro
Affected versions Fixed in before 3.0.2 3.0.2 from 2.0.0-alpha-0 to before 3.0.2 3.0.2
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.