CVE-2024-22262
CVE-2024-22262: Spring Framework URL Parsing with Host Validation
Reported by vmware · Published April 16, 2024
spring-web is fixed in 6.1.6, 6.0.19 and 5.3.34 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework:spring-web | Maven Central | 6.1.6, 6.0.19, 5.3.34 |
| kayenta-fips-2025.4 | Chainguard | 2025.4.3-r7 |
| kayenta-fips-2026.0 | Chainguard | 2026.0.2-r7 |
| Spring Framework | Spring | 6.1.6, 6.0.19, 5.3.34 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Framework | 6.1.x, 6.0.x, 5.3.x |
| chainguard | kayenta-fips-2025.4 | 0 |
| Spring | Spring Framework | 5.3.x, 6.0.x, 6.1.x |
| chainguard | kayenta-fips-2026.0 | 0 |
| chainguard | kayenta-2025.4 | 0 |
| Maven | org.springframework:spring-web | 6.1.0, 0, 6.0.0 |
| vmware | spring_framework | 6.1.0, 5.3.0, 6.0.0 |
| chainguard | kayenta-2026.0 | 0 |
Timeline
- Mar 1, 2024 PoC Published (38 in total, the first dated here)
- Apr 10, 2024 CVE Published
- Apr 16, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (14 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-22262
vulnetix vdb fixes CVE-2024-22262
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-22262/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- CVE-2024-22262 exploit
- https://nvd.nist.gov/vuln/detail/CVE-2024-22262 advisory
- https://github.com/advisories/GHSA-2wrp-6fg6-hmc5 advisory
- https://github.com/spring-projects/spring-framework url
- https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java url
- https://security.netapp.com/advisory/ntap-20240524-0003 advisory