Apache Shiro versions through 3.0.1 have a vulnerability where authorization annotations like @RequiresRoles and @RequiresPermissions are not consistently enforced in certain class or interface hierarchies. This affects modules such as shiro-guice, shiro-aspectj, shiro-cdi, and shiro-jakarta-ee, allowing unauthorized method invocations. The issue is fixed in version 3.0.2, where the annotation closest to the invoked method takes precedence.