Skip to main content

CVE-2024-38821 — Vulnerability in spring-security-web — CVE Details

CRITICAL

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

Published October 28, 2024Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (2.11%). Schedule for your next planned update.

Does your project use an affected org.springframework.security:spring-security-web version?

Paste your pom.xml to check it for CVE-2024-38821 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

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

Advisory Timeline

  • First published October 28, 2024 (759 days ago).
  • Last revised September 10, 2026 — 682 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.security:spring-security-web to 6.0.13 or later
<!-- Update pom.xml dependency version to 6.0.13 for org.springframework.security:spring-security-web -->
Maven
Update org.springframework.security:spring-security-web to 6.3.4 or later
<!-- Update pom.xml dependency version to 6.3.4 for org.springframework.security:spring-security-web -->
Maven
Update org.springframework.security:spring-security-web to 5.8.15 or later
<!-- Update pom.xml dependency version to 5.8.15 for org.springframework.security:spring-security-web -->
Maven
Update org.springframework.security:spring-security-web to 6.2.7 or later
<!-- Update pom.xml dependency version to 6.2.7 for org.springframework.security:spring-security-web -->
Maven
Update org.springframework.security:spring-security-web to 6.1.11 or later
<!-- Update pom.xml dependency version to 6.1.11 for org.springframework.security:spring-security-web -->
Maven
Update org.springframework.security:spring-security-web to 5.7.13 or later
<!-- Update pom.xml dependency version to 5.7.13 for org.springframework.security:spring-security-web -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.springframework.security:spring-security-web Maven · Affected: 6.0.0, 6.0.1, 6.0.2, 6.0.3 (+5 more)6.0.13
org.springframework.security:spring-security-web Maven · Affected: 6.3.0, 6.3.1, 6.3.2, 6.3.36.3.4
org.springframework.security:spring-security-web Maven · Affected: 5.8.0, 5.8.1, 5.8.10, 5.8.11 (+11 more)5.8.15
org.springframework.security:spring-security-web Maven · Affected: 6.2.0, 6.2.1, 6.2.2, 6.2.3 (+3 more)6.2.7
org.springframework.security:spring-security-web Maven · Affected: 6.1.0, 6.1.1, 6.1.2, 6.1.3 (+6 more)6.1.11
org.springframework.security:spring-security-web Maven · Affected: 5.0.0.RELEASE, 5.0.1.RELEASE, 5.0.10.RELEASE, 5.0.11.RELEASE (+107 more)5.7.13

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-285
    Improper AuthorizationMITRE
  • CWE-770
    Allocation of Resources Without LimitsMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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

Frequently Asked Questions

What is CVE-2024-38821?
Spring Security vulnerable to Authorization Bypass of Static Resources in WebFlux Applications. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2024-38821?
CVE-2024-38821 affects org.springframework.security:spring-security-web. It has a 2.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-38821 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
2.11%
EPSS percentile: 82.5

This places it in the top quartile of EPSS-scored vulnerabilities — 82.5% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-c4q5-6c82-3qpw

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml