NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

highCVSS 3.1 8.1GHSA-2wrp-6fg6-hmc5

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.

Published Apr 16, 2024 · Updated Feb 13, 2025

Affected packages

org.springframework:spring-web

Ecosystem
Maven
Affected
< 5.3.34
Fixed in
5.3.34
Check
mvn dependency:tree -Dincludes=org.springframework:spring-web

org.springframework:spring-web

Ecosystem
Maven
Affected
>= 6.0.0, < 6.0.19
Fixed in
6.0.19
Check
mvn dependency:tree -Dincludes=org.springframework:spring-web

org.springframework:spring-web

Ecosystem
Maven
Affected
>= 6.1.0, < 6.1.6
Fixed in
6.1.6
Check
mvn dependency:tree -Dincludes=org.springframework:spring-web

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries