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-webDetails
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.34Fix
# pom.xml: bump <version>5.3.34</version> for org.springframework:spring-webMaven/org.springframework:spring-web
Introduced in:
6.0.0Fixed in: 6.0.19Fix
# pom.xml: bump <version>6.0.19</version> for org.springframework:spring-webMaven/org.springframework:spring-web
Introduced in:
6.1.0Fixed in: 6.1.6Fix
# pom.xml: bump <version>6.1.6</version> for org.springframework:spring-webReferences
- https://nvd.nist.gov/vuln/detail/CVE-2024-22262[ADVISORY]
- https://github.com/spring-projects/spring-framework[PACKAGE]
- https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java[WEB]
- https://security.netapp.com/advisory/ntap-20240524-0003[WEB]
- https://spring.io/security/cve-2024-22262[WEB]