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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Spring | Spring | 5.7.x – < 5.7.13, 5.8.x – < 5.8.15, 6.0.x – < 6.0.13, 6.1.x – < 6.1.11, 6.2.x – < 6.2.7, 6.3.x – < 6.3.4 | 5.7.13 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | apache-nifi +2 | 2.0.0-r0 | — |
| Wolfi rolling | thingsboard +4 | 3.8.1-r2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
mouadk/cve-2024-38821 ★ 2 · Oct 30, 2024
cve-2024-38821
-
masa42/CVE-2024-38821-POC ★ 1 · Jan 18, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework.security:spring-security-web | >= 5.0.0, < 5.7.13 | 5.7.13 | GHSA-c4q5-6c82-3qpw |
| Maven | org.springframework.security:spring-security-web | >= 5.8.0, < 5.8.15 | 5.8.15 | GHSA-c4q5-6c82-3qpw |
| Maven | org.springframework.security:spring-security-web | >= 6.2.0, < 6.2.7 | 6.2.7 | GHSA-c4q5-6c82-3qpw |
| Maven | org.springframework.security:spring-security-web | >= 6.0.0, < 6.0.13 | 6.0.13 | GHSA-c4q5-6c82-3qpw |
| Maven | org.springframework.security:spring-security-web | >= 6.1.0, < 6.1.11 | 6.1.11 | GHSA-c4q5-6c82-3qpw |
| Maven | org.springframework.security:spring-security-web | >= 6.3.0, < 6.3.4 | 6.3.4 | GHSA-c4q5-6c82-3qpw |
Advisories 1
- WID-SEC-2024-3275 VMware Tanzu Spring Security: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Feb 13, 2025