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)
| Artifact | Affected versions | Fixed 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
71% of the dependent artifacts (36,269) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework » spring-test12,234 usages
- org.springframework » spring-webmvc7,538 usages
- org.springframework.boot » spring-boot-starter-security3,606 usages
- org.springframework.security » spring-security-core3,214 usages
- org.springframework » spring-orm3,194 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- org.springframework.security » spring-security-web2,133 usages
- org.springframework.security » spring-security-config2,063 usages
- io.springfox » springfox-swagger21,926 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.axis2.wso2 » axis21,425 usages
- io.springfox » springfox-swagger-ui1,418 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-22262
- Packagehttps://github.com/spring-projects/spring-framework
- Webhttps://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
- Webhttps://security.netapp.com/advisory/ntap-20240524-0003
- Webhttps://spring.io/security/cve-2024-22262
