Skip to content

GHSA-f93f-g33r-8pcp CVE-2014-0225

Improper Restriction of XML External Entity Reference in Spring Framework

High Maven
Severity
8.8 / 10
High · CVSS 3.0
Exploit chance (EPSS)
1.47%
Chance of exploitation in the next 30 days. Higher than 73.83% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-611 Improper Restriction of XML External Entity Reference
Fix
4.0.5
Upgrade org.springframework:spring-webmvc to this version or later

Description

When processing user provided XML documents, the Spring Framework 4.0.0 to 4.0.4, 3.0.0 to 3.2.8, and possibly earlier unsupported versions did not disable by default the resolution of URI references in a DTD declaration. This enabled an XXE attack.

Affected versions

Maven

PackageVulnerableFixed in
org.springframework:spring-webmvc
>= 4.0.0, < 4.0.5
4.0.5
org.springframework:spring-webmvc
>= 3.0.0, < 3.2.8
3.2.8

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

org.springframework:spring-webmvc Maven → 4.0.5

maven
<dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>4.0.5</version></dependency>
gradle
implementation("org.springframework:spring-webmvc:4.0.5")

Severity breakdown

CVSS 3.0 8.8

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Weakness

CWE-611: Improper Restriction of XML External Entity Reference

The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

How to prevent it
  • Implementation, System Configuration: Many XML parsers and validators can be configured to disable external entity expansion.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-36p3-wjmg-h94x
Remote Code Execution in Spring Framework
Critical Known exploited Also affects org.springframework:spring-webmvc
GHSA-j9f9-w8pj-32f8
Spring Framework Server Sent Event stream corruption while rendering fragments
Critical Also affects org.springframework:spring-webmvc
GHSA-pc63-qcmh-9cmg
Spring Framework Improper Path Limitation in XsltView
Critical Also affects org.springframework:spring-webmvc
GHSA-cjpg-rgq5-fr37
Spring Framework Multipart Request Smuggling in Spring MVC and WebFlux
Medium Also affects org.springframework:spring-webmvc
GHSA-957g-f97v-vppc
Spring Framework Cross-site Scripting via JSP Form Tags
Medium Also affects org.springframework:spring-webmvc
GHSA-3chg-m5w7-qfv5
Spring Framework Cross-site Scripting via JavaScriptUtils
Medium Also affects org.springframework:spring-webmvc
GHSA-h3qp-gqrc-q736
Spring Framework Open Redirect in Spring MVC and WebFlux
Medium Also affects org.springframework:spring-webmvc
GHSA-72pg-x5f8-j25j
Spring Framework Path Traversal via Versioned Static Resources in Spring MVC and WebFlux
Medium Also affects org.springframework:spring-webmvc
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor