VDB
Sign up
HIGH8.1

GHSA-2wrp-6fg6-hmc5

Spring Framework URL Parsing with Host Validation

Quick fix

GHSA-2wrp-6fg6-hmc5 — org.springframework:spring-web: upgrade to the fixed version with the command below.

# pom.xml: bump <version>5.3.34</version> for org.springframework:spring-web

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 https://cwe.mitre.org/data/definitions/601.html  attack or to a SSRF attack if the URL is used after passing validation checks.

This is the same as CVE-2024-22259 https://spring.io/security/cve-2024-22259  and CVE-2024-22243 https://spring.io/security/cve-2024-22243 , but with different input.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework:spring-web
Introduced in: 0Fixed in: 5.3.34
Fix# pom.xml: bump <version>5.3.34</version> for org.springframework:spring-web
Maven/org.springframework:spring-web
Introduced in: 6.0.0Fixed in: 6.0.19
Fix# pom.xml: bump <version>6.0.19</version> for org.springframework:spring-web
Maven/org.springframework:spring-web
Introduced in: 6.1.0Fixed in: 6.1.6
Fix# pom.xml: bump <version>6.1.6</version> for org.springframework:spring-web

References