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.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)2.6%top 14.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Debian:12libspring-javano fix listedDEBIAN-CVE-2024-22259
Debian:13libspring-javano fix listedDEBIAN-CVE-2024-22259
Debian:14libspring-javano fix listedDEBIAN-CVE-2024-22259
Mavenorg.springframework:spring-web6.1.5GHSA-hgjh-9rj2-g67j
Mavenorg.springframework:spring-web6.0.18GHSA-hgjh-9rj2-g67j
Mavenorg.springframework:spring-web5.3.33GHSA-hgjh-9rj2-g67j
Ubuntu:25.10libspring-javano fix listedUBUNTU-CVE-2024-22259
Ubuntu:26.04:LTSlibspring-javano fix listedUBUNTU-CVE-2024-22259
Ubuntu:26.10libspring-javano fix listedUBUNTU-CVE-2024-22259

Affected products (as reported)

VendorProductVersions
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

References