CVE-2024-22243: Spring Framework Spring Web Vulnerable To Open Vulnerability
HIGHCVE-2024-22243 is a HIGH (CVSS 8.1) spring web vulnerable to open vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring web vulnerable to open redirect or server side request forgery. Remediation is available by upgrading affected packages to version 6.1.4, 6.0.17, 5.3.32.
CVE-2024-22243 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2024-22243
To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>6.1.4</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>6.0.17</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.3.32</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.springframework
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-22243, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework
Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-22243 Affected Spring Framework Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework:spring-web
|
Maven |
≥ 6.1.0
< 6.1.4
|
6.1.4
|
|
org.springframework:spring-web
|
Maven |
≥ 6.0.0
< 6.0.17
|
6.0.17
|
|
org.springframework:spring-web
|
Maven |
≥ 5.3.0
< 5.3.32
|
5.3.32
|
|
org.springframework:spring-web
|
Maven |
≤ 5.2.25.RELEASE
|
|
References
Frequently Asked Questions
What is CVE-2024-22243?
Which Spring Framework versions are affected?
What version fixes CVE-2024-22243?
Is spring-web affected?
What is the CVSS score of CVE-2024-22243?
What CWE is associated with CVE-2024-22243?
How can I check Maven dependencies for CVE-2024-22243?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ccgv-vj62-xf9h",
"modified" : "2025-02-13T19:12:19Z",
"published" : "2024-02-23T06:30:31Z",
"aliases" : [ "CVE-2024-22243" ],
"summary" : "Spring Web vulnerable to Open Redirect or Server Side Request Forgery",
"details" : "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 attack or to a SSRF attack if the URL is used after passing validation checks.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.0"
}, {
"fixed" : "6.1.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.0.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.3.0"
}, {
"fixed" : "5.3.32"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.2.25.RELEASE"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22243"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spring-projects/spring-framework"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/blob/main/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240524-0001"
}, {
"type" : "WEB",
"url" : "https://spring.io/security/cve-2024-22243"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2024/Sep/24"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-23T18:03:48Z",
"nvd_published_at" : "2024-02-23T05:15:08Z"
}
}