CVE-2014-1904: Spring Framework Improper Neutralization Of Input During Vulnerability
MODERATECVE-2014-1904 is a MODERATE improper neutralization of input during vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves improper neutralization of input during web page generation in spring framework. Remediation is available by upgrading affected packages to version 3.2.8.RELEASE, 4.0.2.RELEASE.
CVE-2014-1904 at a Glance
How to Fix CVE-2014-1904
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-webmvc</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.0.2.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-2014-1904, 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 3.2.8.RELEASE), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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-2014-1904 Affected Spring Framework Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework:spring-webmvc
|
Maven |
≥ 3.0.0
< 3.2.8.RELEASE
|
3.2.8.RELEASE
|
|
org.springframework:spring-webmvc
|
Maven |
≥ 4.0.0
< 4.0.2.RELEASE
|
4.0.2.RELEASE
|
References
Frequently Asked Questions
What is CVE-2014-1904?
Which Spring Framework versions are affected?
What version fixes CVE-2014-1904?
Is spring-webmvc affected?
What CWE is associated with CVE-2014-1904?
How can I check Maven dependencies for CVE-2014-1904?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ff7p-jqjm-v66h",
"modified" : "2024-03-05T18:51:05Z",
"published" : "2022-05-14T01:14:55Z",
"aliases" : [ "CVE-2014-1904" ],
"summary" : "Improper Neutralization of Input During Web Page Generation in Spring Framework",
"details" : "Cross-site scripting (XSS) vulnerability in web/servlet/tags/form/FormTag.java in Spring MVC in Spring Framework 3.0.0 before 3.2.8 and 4.0.0 before 4.0.2 allows remote attackers to inject arbitrary web script or HTML via the requested URI in a default action.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-webmvc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.2.8.RELEASE"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.2.7.RELEASE"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-webmvc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.2.RELEASE"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.0.1.RELEASE"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-1904"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/commit/741b4b229ae032bd17175b46f98673ce0bd2d485"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/commit/75e08695a04980dbceae6789364717e9d8764d58#diff-5c29d6685335045274d9908c5cd45e45"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spring-projects/spring-framework"
}, {
"type" : "WEB",
"url" : "https://jira.springsource.org/browse/SPR-11426"
}, {
"type" : "WEB",
"url" : "http://docs.spring.io/spring/docs/3.2.8.RELEASE/changelog.txt"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0400.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2014/Mar/101"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/57915"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-07T22:46:24Z",
"nvd_published_at" : "2014-03-20T16:55:00Z"
}
}