CVE-2024-22243: Spring Framework URL Parsing with Host Validation
Spring Framework
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework:spring-web Maven |
|
|
Spring Framework
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework:spring-web Maven |
|
|
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 https://cwe.mitre.org/data/definitions/601.html attack or to a SSRF attack if the URL is used after passing validation checks.
From the CVE record · vmware
Applications may be vulnerable when they use UriComponentsBuilder to parse an externally provided URL and validate its host. An attacker-provided URL could lead to an open redirect or, if the application uses the URL after validation, SSRF. Authentication and user-interaction requirements are not specified.
Teams running Spring Framework applications using org.springframework:spring-web versions 6.1.0–6.1.3, 6.0.0–6.0.16, 5.3.0–5.3.31, or 5.2.25.RELEASE and earlier should check their URL-handling code.