{"id":"CVE-2024-22259","published":"2024-03-16T04:40:08Z","modified":"2025-02-13T17:33:39Z","title":"CVE-2024-22259: Spring Framework URL Parsing with Host Validation (2nd report)","vendor":"Spring","product":"Spring Framework","tier":"tail","description":{"text":"Applications that use UriComponentsBuilder in Spring Framework 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.\n\nThis is the same as  CVE-2024-22243 https://spring.io/security/cve-2024-22243 , but with different input.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02573,"percentile":0.85157,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://spring.io/security/cve-2024-22259","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240524-0002/","tags":[]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":17.03},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Framework","versions":[">= 6.1.x, < 6.1.5",">= 6.0.x, < 6.0.18",">= 5.3.x, < 5.3.33"]}],"affected":[{"ecosystem":"Maven","package":"org.springframework:spring-web","vulnerableRanges":[">=6.1.0, <6.1.5",">=6.0.0, <6.0.18","<5.3.33"],"patched":["6.1.5","6.0.18","5.3.33"],"from":["GHSA-hgjh-9rj2-g67j"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-0937","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-framework-cve-2015-5211","children":[{"from":"CVE-2024-22259","to":"CVE-2024-38820","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java"],"commits":["https://github.com/spring-projects/spring-framework/commit/297cbae2990e1413537c55845a7e0ea0ffd9f9bb","https://github.com/spring-projects/spring-framework/commit/381f790329a48b74c2a49fc1384dd68ca9153501","https://github.com/spring-projects/spring-framework/commit/23656aebc6c7d0f9faff1080981eb4d55eff296c"],"basis":"shared function","functions":["fromHttpUrl"]}]}],"packageHistory":[{"cve":"CVE-2021-22118","published":"2021-05-27","fixed":"5.3.7","kev":false},{"cve":"CVE-2016-1000027","published":"2020-01-02","fixed":"6.0.0","kev":false},{"cve":"CVE-2024-22243","published":"2024-02-23","fixed":"6.1.4","kev":false,"link":{"from":"CVE-2024-22243","to":"CVE-2024-22259","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-web","fromFixed":"5.3.32","toFixed":"5.3.33","daysApart":22},{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-web","fromFixed":"6.1.4","toFixed":"6.1.5","daysApart":22},{"kind":"similar","provenance":"machine","score":0.96,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2024-22259","published":"2024-03-16","fixed":"6.1.5","kev":false},{"cve":"CVE-2024-22262","published":"2024-04-16","fixed":"6.1.6","kev":false,"link":{"from":"CVE-2024-22259","to":"CVE-2024-22262","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-web","fromFixed":"5.3.33","toFixed":"5.3.34","daysApart":31},{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-web","fromFixed":"6.0.18","toFixed":"6.0.19","daysApart":31},{"kind":"similar","provenance":"machine","score":1.0,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2024-38809","published":"2024-09-27","fixed":"6.1.12","kev":false},{"cve":"CVE-2024-38820","published":"2024-10-18","fixed":"6.1.14","kev":false}],"package":"Maven:org.springframework:spring-web"}}