HIGH 8.1

CVE-2024-22262

Spring Framework URL Parsing with Host Validation

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

ArtifactAffected versionsFixed in
org.springframework » spring-web
< 5.3.34>= 6.0.0, < 6.0.19>= 6.1.0, < 6.1.6
5.3.34, 6.0.19, 6.1.6

Blast radius

1affected artifacts
401affected versions
50,751dependent artifacts (est.)
2,345,915dependent versions

71% of the dependent artifacts (36,269) still pull an affected version in their latest release.

DepthDependent versions
Direct
240,492
2 hops
686,552
3 hops
759,544
4 hops
417,462
5 hops
168,886
6 hops
72,979

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.