Spring Framework DoS via conditional HTTP request
Published 24 Sept 2024 · Updated 10 Sept 2026
Is your project on an affected org.springframework:spring-web?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <5.3.38
- Fixed in
- 5.3.38
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=5.3.38 -DforceVersion=true- Affected
- >=6.0.0 <6.0.23
- Fixed in
- 6.0.23
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=6.0.23 -DforceVersion=true- Affected
- >=6.1.0 <6.1.12
- Fixed in
- 6.1.12
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=6.1.12 -DforceVersion=trueDetails
Description
Applications that parse ETags from If-Match or If-None-Match request headers are vulnerable to DoS attack.
Affected Spring Products and Versions
org.springframework:spring-web in versions
6.1.0 through 6.1.11 6.0.0 through 6.0.22 5.3.0 through 5.3.37
Older, unsupported versions are also affected
Mitigation
Users of affected versions should upgrade to the corresponding fixed version. 6.1.x -> 6.1.12 6.0.x -> 6.0.23 5.3.x -> 5.3.38 No other mitigation steps are necessary.
Users of older, unsupported versions could enforce a size limit on If-Match and If-None-Match headers, e.g. through a Filter.
Is GHSA-2rmj-mq67-h97g in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework:spring-web, and gives you the command that fixes it.
More advisories for org.springframework:spring-web
- MediumCVE-2026-41854Spring Framework Server-Side Request Forgery via UriComponentsBuilder · 9 Jun 2026
- MediumCVE-2025-41234Spring Framework vulnerable to a reflected file download (RFD) · 13 Jun 2025
- MediumCVE-2024-38820Spring Framework DataBinder Case Sensitive Match Exception · 18 Oct 2024
- HighCVE-2024-22262Spring Framework URL Parsing with Host Validation · 16 Apr 2024
- HighCVE-2024-22259Spring Framework URL Parsing with Host Validation Vulnerability · 16 Mar 2024
- HighCVE-2024-22243Spring Web vulnerable to Open Redirect or Server Side Request Forgery · 23 Feb 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-38809
- Linkgithub.com/spring-projects/spring-framework/issues/33372
- Linkgithub.com/spring-projects/spring-framework/commit/582bfccbb72e5c8959a0b472d1dc7d03a20520f3
- Linkgithub.com/spring-projects/spring-framework/commit/8d16a50907c11f7e6b407d878a26e84eba08a533
- Linkgithub.com/spring-projects/spring-framework/commit/bb17ad8314b81850a939fd265fb53b3361705e85
- Packagegithub.com/spring-projects/spring-framework
- Linkspring.io/security/cve-2024-38809
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.