HIGH8.1
GHSA-hgjh-9rj2-g67j
Spring Framework URL Parsing with Host Validation Vulnerability
Quick fix
GHSA-hgjh-9rj2-g67j — org.springframework:spring-web: upgrade to the fixed version with the command below.
# pom.xml: bump <version>6.1.5</version> for org.springframework:spring-webDetails
Applications that use UriComponentsBuilder in Spring Framework 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-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:
6.1.0Fixed in: 6.1.5Fix
# pom.xml: bump <version>6.1.5</version> for org.springframework:spring-webMaven/org.springframework:spring-web
Introduced in:
6.0.0Fixed in: 6.0.18Fix
# pom.xml: bump <version>6.0.18</version> for org.springframework:spring-webMaven/org.springframework:spring-web
Introduced in:
0Fixed in: 5.3.33Fix
# pom.xml: bump <version>5.3.33</version> for org.springframework:spring-webReferences
- https://nvd.nist.gov/vuln/detail/CVE-2024-22259[ADVISORY]
- https://github.com/spring-projects/spring-framework/commit/297cbae2990e1413537c55845a7e0ea0ffd9f9bb[WEB]
- https://github.com/spring-projects/spring-framework/commit/381f790329a48b74c2a49fc1384dd68ca9153501[WEB]
- https://github.com/spring-projects/spring-framework/commit/f2fd2f12269c6a781c5b2c20b3c24141055a3d68[WEB]
- https://github.com/spring-projects/spring-framework[WEB]
- https://security.netapp.com/advisory/ntap-20240524-0002[WEB]
- https://spring.io/security/cve-2024-22259[WEB]