Intel

AIKIDO-2025-10316

spring-security-config is vulnerable to Authorization Bypass

Authorization BypassCVE-2025-41232 Published May 20, 2025

80

High Risk

This Affects:

JAVAspring-security-config
6.4.0 - 6.4.4
Fixed in 6.4.5
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to an authorization bypass due to Spring Security Aspects failing to correctly detect method-level security annotations on private methods. This issue occurs when @EnableMethodSecurity(mode = ASPECTJ) is used in combination with the spring-security-aspects module, and security annotations are applied to private methods. As a result, these methods may be invoked without the intended authorization checks, potentially allowing unauthorized access.

Who does this affect?

You are affected if using a vulnerable version. You are not affected if you are not using @EnableMethodSecurity(mode = ASPECTJ) or the spring-security-aspects module, or if your application does not include any private methods annotated with Spring Security annotations.

Background info

spring-security-config is vulnerable to Authorization Bypass in versions 6.4.0 - 6.4.4.

How to fix this

Upgrade the org.springframework.security:spring-security-config library to the patch version.