CVE-2014-1904 Improper Neutralization of Input During Web Page Generation in Spring Framework
Remote attackers can inject arbitrary web script or HTML via the requested URI in a default action, affecting Spring MVC applications.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2014-1904?
CVE-2014-1904 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Mar 2014. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2014-1904?
4 open source packages ship an affected version, including org.springframework:spring-webmvc. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework:spring-webmvc Maven | From 3.0.0 | 3.2.8.RELEASE |
org.springframework:spring-webmvc Maven | From 3.0.0 | 3.2.8.RELEASE |
org.springframework:spring-webmvc Maven | From 4.0.0 | 4.0.2.RELEASE |
org.springframework:spring-webmvc Maven | From 4.0.0 | 4.0.2.RELEASE |
Products include Pivotal Software Spring Framework.
How do I fix CVE-2014-1904?
Upgrade org.springframework:spring-webmvc to a fixed version for your release line: 3.2.8.RELEASE or 4.0.2.RELEASE.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2014-1904 being exploited?
There is no known exploitation of CVE-2014-1904 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2014-0225 Improper Restriction of XML External Entity Reference in Spring Framework
- CVE-2016-5007 Spring Security and Spring Framework may not recognize certain paths that should be protected
- CVE-2016-9878 Pivotal Spring Framework Paths provided to the ResourceServlet were not properly sanitized
- CVE-2013-6429 Cross-Site Request Forgery in Spring Framework
- CVE-2013-6430 Improper Neutralization of Input During Web Page Generation in Spring Framework
Sources
Also known as DEBIAN-CVE-2014-1904, GHSA-ff7p-jqjm-v66h.