CVE-2024-22243: Spring Framework Spring Web Vulnerable To Open Vulnerability

HIGH
Advisory Identifier: GHSA-ccgv-vj62-xf9h
CVSS 8.1
CWE-601
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-22243
GHSA Identifier GHSA-ccgv-vj62-xf9h
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

org.springframework:spring-web fixed: 6.1.4
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>6.1.4</version>
</dependency>
org.springframework:spring-web fixed: 6.0.17
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>6.0.17</version>
</dependency>
org.springframework:spring-web fixed: 5.3.32
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>5.3.32</version>
</dependency>
org.springframework:spring-web fixed: Latest secure release
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-22243 Affected Spring Framework Versions

4 component(s)
Fixed Versions:
6.1.46.0.175.3.32
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?
CVE-2024-22243 is a security vulnerability in Spring Framework involving Spring Web vulnerable to Open Redirect or Server Side Request Forgery under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Spring Framework versions are affected?
Affected versions include releases prior to 6.1.4, 6.0.17, 5.3.32 across affected packages: org.springframework:spring-web.
What version fixes CVE-2024-22243?
Upgrading to 6.1.4, 6.0.17, 5.3.32 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-web affected?
Yes, org.springframework:spring-web is affected in releases prior to 6.1.4, 6.0.17, 5.3.32, Latest secure release. Upgrade your dependency to 6.1.4, 6.0.17, 5.3.32, Latest secure release or later.
What is the CVSS score of CVE-2024-22243?
CVE-2024-22243 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-22243?
CVE-2024-22243 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Maven dependencies for CVE-2024-22243?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}