CVE-2025-41243: Spring Framework Spring Expression Language Property Modification Vulnerability
CRITICALCVE-2025-41243 is a CRITICAL (CVSS 10.0) spring expression language property modification vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring expression language property modification using spring cloud gateway server webflux. Remediation is available by upgrading affected packages to version 4.2.5, 4.3.1.
CVE-2025-41243 at a Glance
Security Impact
CVSS: 10.0
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:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2025-41243
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.cloud</groupId>
<artifactId>spring-cloud-gateway-server-webflux</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-gateway-server-webflux</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-gateway-server-webflux</artifactId>
<version>4.2.5</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-gateway-server-webflux</artifactId>
<version>4.3.1</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.cloud
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-41243, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.cloud
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 4.2.5), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.cloud 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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-2025-41243 Affected Spring Framework Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.cloud:spring-cloud-gateway-server-webflux
|
Maven |
≥ 3.1.0
≤ 3.1.10
|
|
|
org.springframework.cloud:spring-cloud-gateway-server-webflux
|
Maven |
≥ 4.0.0
≤ 4.1.10
|
|
|
org.springframework.cloud:spring-cloud-gateway-server-webflux
|
Maven |
≥ 4.2.0
< 4.2.5
|
4.2.5
|
|
org.springframework.cloud:spring-cloud-gateway-server-webflux
|
Maven |
≥ 4.3.0
< 4.3.1
|
4.3.1
|
References
Frequently Asked Questions
What is CVE-2025-41243?
Which Spring Framework versions are affected?
What version fixes CVE-2025-41243?
Is spring-cloud-gateway-server-webflux affected?
What is the CVSS score of CVE-2025-41243?
What CWE is associated with CVE-2025-41243?
How can I check Maven dependencies for CVE-2025-41243?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q2cj-h8fw-q4cc",
"modified" : "2025-09-16T20:20:00Z",
"published" : "2025-09-16T15:32:37Z",
"aliases" : [ "CVE-2025-41243" ],
"summary" : "Spring Expression language property modification using Spring Cloud Gateway Server WebFlux",
"details" : "Spring Cloud Gateway Server Webflux may be vulnerable to Spring Environment property modification.\n\nAn application should be considered vulnerable when all the following are true:\n\n * The application is using Spring Cloud Gateway Server Webflux (Spring Cloud Gateway Server WebMVC is not vulnerable).\n * Spring Boot actuator is a dependency.\n * The Spring Cloud Gateway Server Webflux actuator web endpoint is enabled via management.endpoints.web.exposure.include=gateway.\n * The actuator endpoints are available to attackers.\n * The actuator endpoints are unsecured.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.cloud:spring-cloud-gateway-server-webflux"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"last_affected" : "3.1.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.cloud:spring-cloud-gateway-server-webflux"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"last_affected" : "4.1.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.cloud:spring-cloud-gateway-server-webflux"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.cloud:spring-cloud-gateway-server-webflux"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3.0"
}, {
"fixed" : "4.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-41243"
}, {
"type" : "WEB",
"url" : "https://spring.io/security/cve-2025-41243"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-16T20:20:00Z",
"nvd_published_at" : "2025-09-16T15:15:44Z"
}
}