GitHub Advisoryadvisory · Maven

GHSA-2wrp-6fg6-hmc5 Spring Framework URL Parsing with Host Validation

HIGH Published 2024-04-16 Modified 2025-02-13 Official page ↗
Aliases
CVE-2024-22262
Ecosystem
Maven
Packages
org.springframework:spring-web
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Weaknesses
CWE-601
Reviewed
2024-04-16

Affected packages

• Maven org.springframework:spring-web: < 5.3.34 → fixed in 5.3.34 • Maven org.springframework:spring-web: >= 6.0.0, < 6.0.19 → fixed in 6.0.19 • Maven org.springframework:spring-web: >= 6.1.0, < 6.1.6 → fixed in 6.1.6

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.

Related

Alias · CVE (1)

  • CVE-2024-22262 Applications that use UriComponentsBuilder to parse an externally provided URL (e.g. vulnerability

Weakness · CWE (1)

  • CWE-601 URL Redirection to Untrusted Site weakness

References