ADVISORIES

GitHub Advisory Database

GHSA-2rmj-mq67-h97g

Spring Framework DoS via conditional HTTP request

Moderate CVE-2024-38809

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework:spring-web
All versions before 5.3.38 (fixed in 5.3.38)
Mavenorg.springframework:spring-web
From 6.0.0 before 6.0.23 (fixed in 6.0.23)
Mavenorg.springframework:spring-web
From 6.1.0 before 6.1.12 (fixed in 6.1.12)

References