MODERATE 6.3

CVE-2026-74763

Apache Shiro: Authorization annotations not always enforced, depending on where they are placed

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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)

ArtifactAffected versionsFixed 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

4affected artifacts
131affected versions
391dependent artifacts (est.)
10,990dependent versions

100% of the dependent artifacts (391) still pull an affected version in their latest release.

DepthDependent 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

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.