Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework/spring-web
  4. ›
  5. CVE-2024-22262

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

April 16, 2024 (updated February 13, 2025)

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

  • github.com/advisories/GHSA-2wrp-6fg6-hmc5
  • github.com/spring-projects/spring-framework
  • github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
  • nvd.nist.gov/vuln/detail/CVE-2024-22262
  • security.netapp.com/advisory/ntap-20240524-0003
  • spring.io/security/cve-2024-22262

Code Behaviors & Features

Detect and mitigate CVE-2024-22262 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.3.34, all versions starting from 6.0.0 before 6.0.19, all versions starting from 6.1.0 before 6.1.6

Fixed versions

  • 5.3.34
  • 6.0.19
  • 6.1.6

Solution

Upgrade to versions 5.3.34, 6.0.19, 6.1.6 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

maven/org.springframework/spring-web/CVE-2024-22262.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:14 +0000.