Vulnerability · Published Apr 16, 2024 · Assigned by vmware

CVE-2024-22262CVE-2024-22262: Spring Framework URL Parsing with Host Validation

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 1.2% (higher than 68% 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)1.2%top 31.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

Applications that use UriComponentsBuilder 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-22259 https://spring.io/security/cve-2024-22259  and 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-22262
Debian:13libspring-javano fix listedDEBIAN-CVE-2024-22262
Debian:14libspring-javano fix listedDEBIAN-CVE-2024-22262
Mavenorg.springframework:spring-web5.3.34GHSA-2wrp-6fg6-hmc5
Mavenorg.springframework:spring-web6.0.19GHSA-2wrp-6fg6-hmc5
Mavenorg.springframework:spring-web6.1.6GHSA-2wrp-6fg6-hmc5
Ubuntu:25.10libspring-javano fix listedUBUNTU-CVE-2024-22262
Ubuntu:26.04:LTSlibspring-javano fix listedUBUNTU-CVE-2024-22262
Ubuntu:26.10libspring-javano fix listedUBUNTU-CVE-2024-22262

Affected products (as reported)

VendorProductVersions
Spring Spring Framework 6.1.x – before 6.1.66.0.x – before 6.0.195.3.x – before 5.3.34

Weakness: CWE-601, CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

References