Skip to content
OpenAdvisories
High · 8.1 Public exploit CVE-2024-22262 EUVD-2024-1071GHSA-2wrp-6fg6-hmc5

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

Published Apr 16, 2024 · Updated Feb 13, 2025 · Assigned by vmware

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 products

VendorProductAffectedFixed
Spring Spring Framework 6.1.x – < 6.1.6, 6.0.x – < 6.0.19, 5.3.x – < 5.3.34 6.1.6

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libspring-java No fix yet —
Debian 13 libspring-java No fix yet —
Debian 12 libspring-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework:spring-web < 5.3.34 5.3.34 GHSA-2wrp-6fg6-hmc5
Maven org.springframework:spring-web >= 6.0.0, < 6.0.19 6.0.19 GHSA-2wrp-6fg6-hmc5
Maven org.springframework:spring-web >= 6.1.0, < 6.1.6 6.1.6 GHSA-2wrp-6fg6-hmc5

Advisories 27

References