CVE-2024-22259: Spring Framework URL Parsing with Host Validation Vulnerability
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.
Published Mar 16, 2024 · Updated Feb 13, 2025
Affected packages
org.springframework:spring-web
- Ecosystem
- Maven
- Affected
- >= 6.1.0, < 6.1.5
- Fixed in
- 6.1.5
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-web
org.springframework:spring-web
- Ecosystem
- Maven
- Affected
- >= 6.0.0, < 6.0.18
- Fixed in
- 6.0.18
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-web
org.springframework:spring-web
- Ecosystem
- Maven
- Affected
- < 5.3.33
- Fixed in
- 5.3.33
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-web
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to yoshizawa-masatoshi.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-22259
- https://spring.io/security/cve-2024-22259
- https://github.com/spring-projects/spring-framework/commit/297cbae2990e1413537c55845a7e0ea0ffd9f9bb
- https://github.com/spring-projects/spring-framework/commit/381f790329a48b74c2a49fc1384dd68ca9153501
- https://github.com/spring-projects/spring-framework/commit/f2fd2f12269c6a781c5b2c20b3c24141055a3d68
- https://security.netapp.com/advisory/ntap-20240524-0002
- https://github.com/advisories/GHSA-hgjh-9rj2-g67j
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-41854
Spring Framework Server-Side Request Forgery via UriComponentsBuilder
medium4.2Jun 9, 2026CVE-2025-41234
Spring Framework vulnerable to a reflected file download (RFD)
medium6.5No fixJun 13, 2025CVE-2024-38820
Spring Framework DataBinder Case Sensitive Match Exception
medium5.3No fixOct 18, 2024CVE-2024-38809
Spring Framework DoS via conditional HTTP request
medium5.3Sep 24, 2024CVE-2024-22262
Spring Framework URL Parsing with Host Validation
high8.1Apr 16, 2024CVE-2024-22243
Spring Web vulnerable to Open Redirect or Server Side Request Forgery
high8.1No fixFeb 23, 2024
