Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.security/spring-security-web
  4. ›
  5. CVE-2024-38821

CVE-2024-38821: Spring Security vulnerable to Authorization Bypass of Static Resources in WebFlux Applications

October 28, 2024 (updated January 24, 2025)

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

  • github.com/advisories/GHSA-c4q5-6c82-3qpw
  • github.com/spring-projects/spring-security
  • github.com/spring-projects/spring-security/commit/0e257b56ce35402558a260ffa6b368982f9a7934
  • github.com/spring-projects/spring-security/commit/4ce7cde15599c0447163fd46bac616e03318bf5b
  • nvd.nist.gov/vuln/detail/CVE-2024-38821
  • security.netapp.com/advisory/ntap-20250124-0006
  • spring.io/security/cve-2024-38821

Code Behaviors & Features

Detect and mitigate CVE-2024-38821 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.7.13, all versions starting from 5.8.0 before 5.8.15, all versions starting from 6.0.0 before 6.0.13, all versions starting from 6.1.0 before 6.1.11, all versions starting from 6.2.0 before 6.2.7, all versions starting from 6.3.0 before 6.3.4

Fixed versions

  • 5.7.13
  • 5.8.15
  • 6.2.7
  • 6.0.13
  • 6.1.11
  • 6.3.4

Solution

Upgrade to versions 5.7.13, 5.8.15, 6.0.13, 6.1.11, 6.2.7, 6.3.4 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

maven/org.springframework.security/spring-security-web/CVE-2024-38821.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.