CVE-2017-8039: Spring Framework Remote Code Execution Vulnerability
MODERATECVE-2017-8039 is a MODERATE (CVSS 5.9) remote code execution vulnerability (CWE-1188: Initialization of a Resource with an Insecure Default) affecting Spring Framework libraries in the Maven ecosystem. The issue involves insecure default initialization of resource in pivotal spring web flow. Remediation is available by upgrading affected packages to version 2.4.6.
CVE-2017-8039 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2017-8039
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.webflow</groupId>
<artifactId>spring-webflow</artifactId>
<version>2.4.6</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.webflow
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2017-8039, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.webflow
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 2.4.6), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.webflow 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-1188: Initialization of a Resource with an Insecure Default, where the product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure. 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-2017-8039 Affected Spring Framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.webflow:spring-webflow
|
Maven |
< 2.4.6
|
2.4.6
|
References
Frequently Asked Questions
What is CVE-2017-8039?
Which Spring Framework versions are affected?
What version fixes CVE-2017-8039?
Is spring-webflow affected?
What is the CVSS score of CVE-2017-8039?
What CWE is associated with CVE-2017-8039?
How can I check Maven dependencies for CVE-2017-8039?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q4v9-qjmw-j7vf",
"modified" : "2022-06-30T21:13:17Z",
"published" : "2022-05-13T01:47:15Z",
"aliases" : [ "CVE-2017-8039" ],
"summary" : "Insecure Default Initialization of Resource in Pivotal Spring Web Flow",
"details" : "An issue was discovered in Pivotal Spring Web Flow through 2.4.5. Applications that do not change the value of the MvcViewFactoryCreator useSpringBinding property which is disabled by default (i.e., set to 'false') can be vulnerable to malicious EL expressions in view states that process form submissions but do not have a sub-element to declare explicit data binding property mappings. NOTE: this issue exists because of an incomplete fix for CVE-2017-4971.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.webflow:spring-webflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.4.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.4.5"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-8039"
}, {
"type" : "WEB",
"url" : "https://pivotal.io/security/cve-2017-8039"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/100849"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1188" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-30T21:13:17Z",
"nvd_published_at" : "2017-11-27T10:29:00Z"
}
}