GitHub Advisory Database
GHSA-ccgv-vj62-xf9h
Spring Web vulnerable to Open Redirect or Server Side Request Forgery
Details
Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. through a query parameter) AND perform validation checks on the host of the parsed URL may be vulnerable to a open redirect attack or to a SSRF attack if the URL is used after passing validation checks.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.springframework:spring-web | From 6.1.0 before 6.1.4 (fixed in 6.1.4) |
| Maven | org.springframework:spring-web | From 6.0.0 before 6.0.17 (fixed in 6.0.17) |
| Maven | org.springframework:spring-web | From 5.3.0 before 5.3.32 (fixed in 5.3.32) |
| Maven | org.springframework:spring-web | All versions up to and including 5.2.25.RELEASE |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-22243
- https://github.com/spring-projects/spring-framework
- https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
- https://security.netapp.com/advisory/ntap-20240524-0001
- https://spring.io/security/cve-2024-22243
- http://seclists.org/fulldisclosure/2024/Sep/24