CVE-2026-74763
Apache Shiro: Authorization annotations not always enforced, depending on where they are placed
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.
Affected Maven artifacts (4)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.shiro » shiro-aspectjpreliminary | < 3.0.2 | 3.0.2 |
| org.apache.shiro » shiro-cdipreliminary | >= 2.0.0-alpha-0, < 3.0.2 | 3.0.2 |
| org.apache.shiro » shiro-guicepreliminary | < 3.0.2 | 3.0.2 |
| org.apache.shiro » shiro-jakarta-eepreliminary | >= 2.0.0-alpha-0, < 3.0.2 | 3.0.2 |
Blast radius
100% of the dependent artifacts (391) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,661 |
| 2 hops | 3,916 |
| 3 hops | 3,328 |
| 4 hops | 1,049 |
| 5 hops | 442 |
| 6 hops | 594 |
Most used dependents
- org.sonatype.nexus » nexus-plugin-api126 usages
- org.sonatype.nexus » nexus-plugin-testsupport51 usages
- org.apache.shiro » shiro-all47 usages
- org.sonatype.nexus » nexus-core40 usages
- org.sonatype.nexus » nexus-rest-api40 usages
- org.sonatype.nexus » nexus-security31 usages
- com.acooly » acooly-component-security31 usages
- org.sonatype.nexus » nexus-plugin-test-api28 usages
- net.minecraftforge.gradle » ForgeGradle24 usages
- org.fcrepo » fcrepo-auth-common23 usages
- org.kill-bill.billing » killbill-util22 usages
- org.sonatype.nexus » nexus-app22 usages
- net.mingsoft » ms-basic21 usages
- org.sonatype.nexus » nexus-configuration21 usages
- io.github.jsoagger » jsoagger-base19 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
