CVE-2024-38809: Spring Framework DoS via conditional HTTP request
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.
Published Sep 24, 2024 · Updated Feb 21, 2025
Affected packages
org.springframework:spring-web
- Ecosystem
- Maven
- Affected
- < 5.3.38
- Fixed in
- 5.3.38
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-web
org.springframework:spring-web
- Ecosystem
- Maven
- Affected
- >= 6.0.0, < 6.0.23
- Fixed in
- 6.0.23
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-web
org.springframework:spring-web
- Ecosystem
- Maven
- Affected
- >= 6.1.0, < 6.1.12
- Fixed in
- 6.1.12
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-web
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to weddige.
References
- https://github.com/spring-projects/spring-framework/issues/33372
- https://github.com/spring-projects/spring-framework/commit/582bfccbb72e5c8959a0b472d1dc7d03a20520f3
- https://github.com/spring-projects/spring-framework/commit/8d16a50907c11f7e6b407d878a26e84eba08a533
- https://github.com/spring-projects/spring-framework/commit/bb17ad8314b81850a939fd265fb53b3361705e85
- https://spring.io/security/cve-2024-38809
- https://nvd.nist.gov/vuln/detail/CVE-2024-38809
- https://github.com/advisories/GHSA-2rmj-mq67-h97g
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-41854
Spring Framework Server-Side Request Forgery via UriComponentsBuilder
medium4.2Jun 9, 2026CVE-2025-41234
Spring Framework vulnerable to a reflected file download (RFD)
medium6.5No fixJun 13, 2025CVE-2024-38820
Spring Framework DataBinder Case Sensitive Match Exception
medium5.3No fixOct 18, 2024CVE-2024-22262
Spring Framework URL Parsing with Host Validation
high8.1Apr 16, 2024CVE-2024-22259
Spring Framework URL Parsing with Host Validation Vulnerability
high8.1Mar 16, 2024CVE-2024-22243
Spring Web vulnerable to Open Redirect or Server Side Request Forgery
high8.1No fixFeb 23, 2024
