CVE
CVE-2024-22259
CNA description
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 [link removed] 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.
Affected versions
All Spring Framework vulnerabilities →
- spring-web≥ 6.1.0, < 6.1.5Fixed in 6.1.5
- spring-web≥ 6.0.0, < 6.0.18Fixed in 6.0.18
- spring-web< 5.3.33Fixed in 5.3.33
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- spring.io/security/cve-2024-22259 · Vendor Advisory
- github.com/advisories/GHSA-hgjh-9rj2-g67j · Third Party Advisory
- osv.dev/vulnerability/GHSA-hgjh-9rj2-g67j · Third Party Advisory
- github.com/spring-projects/spring-framework/commit/297cbae2990e1413537 · Vendor Advisory
- github.com/spring-projects/spring-framework/commit/381f790329a48b74c2a · Vendor Advisory
- github.com/spring-projects/spring-framework/commit/f2fd2f12269c6a781c5 · Vendor Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.