GHSA-c4q5-6c82-3qpw
Spring Security vulnerable to Authorization Bypass of Static Resources in WebFlux Applications
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Maven | org.springframework.security:spring-security-web | >= 5.0.0, < 5.7.13 | 5.7.13 |
| Maven | org.springframework.security:spring-security-web | >= 5.8.0, < 5.8.15 | 5.8.15 |
| Maven | org.springframework.security:spring-security-web | >= 6.2.0, < 6.2.7 | 6.2.7 |
| Maven | org.springframework.security:spring-security-web | >= 6.0.0, < 6.0.13 | 6.0.13 |
| Maven | org.springframework.security:spring-security-web | >= 6.1.0, < 6.1.11 | 6.1.11 |
| Maven | org.springframework.security:spring-security-web | >= 6.3.0, < 6.3.4 | 6.3.4 |
Details
As written in the advisory (Markdown source, shown as plain text).
Spring WebFlux applications that have Spring Security authorization rules on static resources can be bypassed under certain circumstances.
For this to impact an application, all of the following must be true:
* It must be a WebFlux application
* It must be using Spring's static resources support
* It must have a non-permitAll authorization rule applied to the static resources support
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2024-38821
- https://github.com/spring-projects/spring-security/commit/0e257b56ce35402558a260ffa6b368982f9a7934
- https://github.com/spring-projects/spring-security/commit/4ce7cde15599c0447163fd46bac616e03318bf5b
- https://github.com/spring-projects/spring-security/commit/b4f27777556c157ec5689c0769322c90be984514
- https://github.com/spring-projects/spring-security
- https://security.netapp.com/advisory/ntap-20250124-0006
- https://spring.io/security/cve-2024-38821