CRITICAL9.1
GHSA-c4q5-6c82-3qpw
Spring Security vulnerable to Authorization Bypass of Static Resources in WebFlux Applications
Quick fix
GHSA-c4q5-6c82-3qpw — org.springframework.security:spring-security-web: upgrade to the fixed version with the command below.
# pom.xml: bump <version>5.7.13</version> for org.springframework.security:spring-security-webDetails
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
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.springframework.security:spring-security-web
Introduced in:
5.0.0Fixed in: 5.7.13Fix
# pom.xml: bump <version>5.7.13</version> for org.springframework.security:spring-security-webMaven/org.springframework.security:spring-security-web
Introduced in:
5.8.0Fixed in: 5.8.15Fix
# pom.xml: bump <version>5.8.15</version> for org.springframework.security:spring-security-webMaven/org.springframework.security:spring-security-web
Introduced in:
6.2.0Fixed in: 6.2.7Fix
# pom.xml: bump <version>6.2.7</version> for org.springframework.security:spring-security-webMaven/org.springframework.security:spring-security-web
Introduced in:
6.0.0Fixed in: 6.0.13Fix
# pom.xml: bump <version>6.0.13</version> for org.springframework.security:spring-security-webMaven/org.springframework.security:spring-security-web
Introduced in:
6.1.0Fixed in: 6.1.11Fix
# pom.xml: bump <version>6.1.11</version> for org.springframework.security:spring-security-webMaven/org.springframework.security:spring-security-web
Introduced in:
6.3.0Fixed in: 6.3.4Fix
# pom.xml: bump <version>6.3.4</version> for org.springframework.security:spring-security-webReferences
- https://nvd.nist.gov/vuln/detail/CVE-2024-38821[ADVISORY]
- https://github.com/spring-projects/spring-security/commit/0e257b56ce35402558a260ffa6b368982f9a7934[WEB]
- https://github.com/spring-projects/spring-security/commit/4ce7cde15599c0447163fd46bac616e03318bf5b[WEB]
- https://github.com/spring-projects/spring-security/commit/b4f27777556c157ec5689c0769322c90be984514[WEB]
- https://github.com/spring-projects/spring-security[PACKAGE]
- https://security.netapp.com/advisory/ntap-20250124-0006[WEB]
- https://spring.io/security/cve-2024-38821[WEB]