CVE-2026-74763: Apache Shiro ignores authorisation annotations declared on interfaces and parent classes

ByLinuxtastic

December 1, 2026 #Apache Shiro, #CVE

Apache Shiro’s authorisation annotations, @RequiresRoles, @RequiresPermissions and their relatives, are the way most Shiro applications protect a method: the annotation names the role or permission, and an interceptor refuses the call if the caller lacks it. In the Guice, AspectJ, CDI and Jakarta EE integration modules, an annotation declared on an interface was not enforced at all, and in the Guice and AspectJ modules an annotation on a class or a superclass was not always enforced either. A caller who could reach the method could invoke it as if the annotation were not there. The project says “an unauthorized caller” can “invoke methods that should be protected”, and scores it 6.3 under CVSS 4.0. Upgrade to Shiro 3.0.2, and until then declare the authorisation annotation directly on every protected implementing method, not on the interface or the parent.

CVE-2026-74763 at a glance.

ComponentApache Shiro, the annotation-based authorisation interceptors in the shiro-guice, shiro-aspectj, shiro-cdi and shiro-jakarta-ee modules. Applications that use Shiro only through shiro-spring, the servlet filter chain, or programmatic Subject checks are not in the affected list
Affected versionsevery Shiro release through 3.0.1: shiro-guice and shiro-aspectj from the beginning, shiro-cdi and shiro-jakarta-ee from 2.0.0-alpha-0, all before 3.0.2, per the Apache CNA record; “impact depending on module and where annotations are declared”
Fixed inShiro 3.0.2, in which “the annotation closest to the invoked method now takes precedence”. No distribution ships a current Shiro: Debian’s shiro package is 1.3.2 and marked vulnerable and unfixed
SeverityApache (CNA) CVSS 4.0 6.3 Medium (AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N; the AT:P is the precondition that the application put its annotations on an interface or parent), CWE-862 (missing authorisation); no CVSS 3.x score; NVD Received with the CNA score. Apache’s own severity label is Medium. Debian no urgency set; Ubuntu page unreachable; Red Hat does not ship Shiro
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS: no score yet on 1 December 2026
Who is exposedJava applications on Linux that wire Shiro through Guice, AspectJ, CDI or Jakarta EE and put @RequiresRoles, @RequiresPermissions, @RequiresAuthentication, @RequiresUser or @RequiresGuest on a service interface or a base class rather than on the implementing method: the common “secure the interface, implement freely” pattern. What an attacker gets is whatever the unprotected method does, which is why the vector carries low confidentiality and integrity impact rather than a fixed outcome. Applications whose annotations already sit on the concrete methods, and applications using Shiro’s filter chain or Spring AOP, are outside the described flaw
PublishedApache announcement and CVE record 16 November 2026; this page built 1 December 2026, last updated 1 December 2026

What it is

Shiro’s annotations work through method interception: the integration module wraps a bean or a pointcut, and before a call reaches the method it looks for authorisation annotations and runs the matching check against the current Subject. Where it looks is the whole question. Java lets an annotation live on the method, on the class, on a superclass, on an interface the class implements, or on the interface’s method, and an interceptor has to walk all of those to find it. The record says the Guice, AspectJ, CDI and Jakarta EE modules did not look at interfaces at all: “annotations declared on an interface were not enforced.” The Guice and AspectJ modules were also inconsistent about class and superclass annotations, which “were not always enforced”, so a class-level @RequiresRoles("admin") meant to cover every method did not always cover them.

The failure is silent. There is no exception, no log line, no refused call; the method runs for whoever reached it, and the only sign is that a user without the role got a result they should not have. That is the reason for CWE-862, missing authorisation, rather than a bypass of a check that ran. The AT:P in the CVSS 4.0 vector records the precondition, that the application chose one of the affected places for its annotations; an application that annotated each concrete method was never exposed, which is also the project’s workaround.

3.0.2 changes the lookup so that the annotation nearest the invoked method wins, and interface and parent annotations are found when nothing nearer overrides them. It shipped alongside six other Shiro fixes, among them CVE-2026-137686, an empty-credential anonymous bind in ActiveDirectoryRealm, and CVE-2026-88019, a Jakarta EE form resubmission issue, so the upgrade closes those too. The credit is to n0mi1k, Joshua Rogers and Wentao He. Apache’s announcement thread on lists.apache.org renders only as an application shell to automated readers; the facts above are from the CVE record Apache filed and the project’s security reports page.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Shiro is a Maven dependency, so the rows that matter are the last two.

DistributionStatusFixed package
AlpineNot consulted for this page; Alpine does not package Shiro—
Debianshiro vulnerable in bookworm (1.3.2-5), trixie, forky and sid (1.3.2-6); source “(unfixed)”; Debian bug 1154077. The 1.3.2 package exists for build dependencies rather than for deploymentnothing on 1 December 2026
UbuntuTracker unreachable on 1 December 2026 (server error on every attempt); nothing inferred—
RHEL, Rocky, Alma, CentOS StreamNo page (client error); Red Hat does not ship Shiro—
openSUSE/SLENot consulted for this page; SUSE does not ship Shiro—
Maven Central (org.apache.shiro), application bundles, containers with a vendored jarThe upstream release applies; every application that depends on an affected module needs a rebuild3.0.2 of each affected module

How to check

Three questions, in order: does the application ship an affected Shiro module and which version, does it use the annotation interceptors from that module, and where are the annotations declared. The third is the one a code search answers and the one that decides whether the application was ever exposed.

# 1. the Shiro jars an application actually loads (3.0.2 is fixed; anything below is affected if it is one of the four modules)
for p in $(pgrep -x java); do tr '\0' '\n' < /proc/$p/cmdline | grep -oE '[^:]*shiro-(guice|aspectj|cdi|jakarta-ee|core)[^:]*\.jar' | sed "s/^/pid $p: /"; done
find / -name 'shiro-*.jar' 2>/dev/null | grep -vE '/\.m2/' | sort -u
# fat jars and wars: look inside
for w in /opt/*/*.war /opt/*/*.jar; do unzip -l "$w" 2>/dev/null | grep -oE 'shiro-[a-z-]+-[0-9][^ ]*\.jar' | sed "s|^|$w: |"; done 2>/dev/null

# 2. is the annotation interceptor from one of those modules wired in?
grep -rlE 'ShiroAopModule|ShiroAnnotationProcessorAspect|ShiroSecurityExtension|ShiroInterceptor' --include='*.java' --include='*.xml' --include='*.properties' /path/to/src 2>/dev/null | head

# 3. where the annotations live: on interfaces or abstract classes is the exposure
grep -rnE '@Requires(Roles|Permissions|Authentication|User|Guest)' --include='*.java' /path/to/src | grep -vE '^\s*//' | while IFS=: read -r f n rest; do
  sed -n '1,/@Requires/p' "$f" | grep -qE '^\s*(public |abstract )*(interface|abstract class) ' && echo "$f:$n: declared on interface/abstract class"; done

An application on 3.0.2, or one that uses none of the four modules, is done. An application below 3.0.2 whose step 3 output is empty was annotating concrete methods all along and the flaw never applied to it; one with hits in step 3 has had those methods unprotected for as long as it has run, and the question becomes who could reach them, which the application’s own access logs answer better than this page can.

How to fix it

Bump the dependency to 3.0.2 for every Shiro module the build names, rebuild, redeploy and restart; a Java service keeps the old jar until it is restarted, and a container keeps it until the image is rebuilt. Keep the module versions aligned, since mixing 3.0.1 and 3.0.2 artefacts is not a supported combination.

# Maven: in the pom, then verify what resolved
#   <shiro.version>3.0.2</shiro.version>
mvn -q dependency:tree -Dincludes=org.apache.shiro | grep shiro
# Gradle
./gradlew dependencies --configuration runtimeClasspath | grep shiro
# then rebuild the artefact, redeploy, restart the service and confirm the loaded jar
systemctl restart myapp && sleep 5 && for p in $(pgrep -x java); do tr '\0' '\n' < /proc/$p/cmdline | grep -o 'shiro-[a-z-]*-3\.0\.2\.jar'; done

The project’s workaround, for an application that cannot take a dependency change today, is to “declare authorization annotations directly on each protected implementing method”. That is a code change and a redeploy too, but a smaller one, and it has the side benefit of surviving the upgrade: 3.0.2’s nearest-annotation rule honours it. What not to do: do not move the checks into the servlet filter chain “instead”, because URL-level rules protect endpoints and not service methods, and a method that the interface was meant to guard is usually reachable from more than one endpoint; and do not assume the Spring integration is affected because it is Shiro, since the record names four modules and shiro-spring is not among them.

Sources

  • CVE-2026-74763 at CVE.org — the Apache CNA record (16 November 2026): the description, the four affected modules and their ranges, CVSS 4.0 6.3, CWE-862, the 3.0.2 fix and the per-method workaround
  • Apache Shiro security reports — the entry for this CVE (Medium, “all Apache Shiro versions through 3.0.1”, mitigation, credit to n0mi1k, Joshua Rogers and Wentao He) and the six other issues fixed in 3.0.2
  • Apache announcement thread — the vendor advisory named in the record; renders as an application shell to automated readers, so its text is quoted here only as the CVE record carries it
  • NVD entry — Received; published 16 November; the CNA’s CVSS 4.0 vector and CWE-862; no CVSS 3.x score, no CPEs yet
  • Distribution trackers: Debian (shiro 1.3.2 vulnerable, unfixed, bug 1154077) · Ubuntu (unreachable on 1 December) · Red Hat (no page; Shiro not shipped)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS: no score on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.