CRITICAL 9.1

CVE-2024-38821

Spring Security vulnerable to Authorization Bypass of Static Resources in WebFlux Applications

Description

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

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.security » spring-security-web
>= 5.0.0, < 5.7.13>= 5.8.0, < 5.8.15>= 6.0.0, < 6.0.13>= 6.1.0, < 6.1.11>= 6.2.0, < 6.2.7>= 6.3.0, < 6.3.4
5.7.13, 5.8.15, 6.0.13, 6.1.11, 6.2.7, 6.3.4

Blast radius

1affected artifacts
184affected versions
8,595dependent artifacts (est.)
574,257dependent versions

57% of the dependent artifacts (4,932) still pull an affected version in their latest release.

DepthDependent versions
Direct
35,284
2 hops
308,334
3 hops
178,262
4 hops
42,820
5 hops
8,372
6 hops
1,185

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.