HIGH 8.1

CVE-2024-22259

Spring Framework URL Parsing with Host Validation Vulnerability

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework » spring-web
< 5.3.33>= 6.0.0, < 6.0.18>= 6.1.0, < 6.1.5
5.3.33, 6.0.18, 6.1.5

Blast radius

1affected artifacts
397affected versions
50,727dependent artifacts (est.)
2,331,989dependent versions

70% of the dependent artifacts (35,983) still pull an affected version in their latest release.

DepthDependent versions
Direct
237,806
2 hops
681,066
3 hops
755,546
4 hops
416,239
5 hops
168,461
6 hops
72,871

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.