Vulnerability · Published Mar 16, 2024 · Assigned by vmware
CVE-2024-22259CVE-2024-22259: Spring Framework URL Parsing with Host Validation (2nd report)
High 8.1
In plain English
A high-severity open redirect in Spring Framework from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 85% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libspring-java | no fix listed | DEBIAN-CVE-2024-22259 |
| Debian:13 | libspring-java | no fix listed | DEBIAN-CVE-2024-22259 |
| Debian:14 | libspring-java | no fix listed | DEBIAN-CVE-2024-22259 |
| Maven | org.springframework:spring-web | 6.1.5 | GHSA-hgjh-9rj2-g67j |
| Maven | org.springframework:spring-web | 6.0.18 | GHSA-hgjh-9rj2-g67j |
| Maven | org.springframework:spring-web | 5.3.33 | GHSA-hgjh-9rj2-g67j |
| Ubuntu:25.10 | libspring-java | no fix listed | UBUNTU-CVE-2024-22259 |
| Ubuntu:26.04:LTS | libspring-java | no fix listed | UBUNTU-CVE-2024-22259 |
| Ubuntu:26.10 | libspring-java | no fix listed | UBUNTU-CVE-2024-22259 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Framework | 6.1.x – before 6.1.56.0.x – before 6.0.185.3.x – before 5.3.33 |
Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N