CVE-2013-7315: Spring Framework Missing XML Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-vp63-rrcm-9mph
CWE-112
Published
Advisory Summary

CVE-2013-7315 is a MODERATE missing xml validation vulnerability (CWE-112: Missing XML Validation) affecting Spring Framework libraries in the Maven ecosystem. The issue involves missing xml validation in spring framework. Remediation is available by upgrading affected packages to version 3.2.4.RELEASE.

CVE-2013-7315 at a Glance

CVE Identifier CVE-2013-7315
GHSA Identifier GHSA-vp63-rrcm-9mph
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-112: Missing XML Validation
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-7315

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.

org.springframework:spring-oxm fixed: 3.2.4.RELEASE
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-oxm</artifactId>
    <version>3.2.4.RELEASE</version>
</dependency>
Verify Direct and Transitive Dependencies

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-2013-7315, 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.4.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-112: Missing XML Validation, where the product accepts xml from an untrusted source but does not validate the xml against the proper schema. 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

The Spring MVC in Spring Framework before 3.2.4 and 4.0.0.M1 through 4.0.0.M2 does not disable external entity resolution for the StAX XMLInputFactory, which allows context-dependent attackers to read arbitrary files, cause a denial of service, and conduct CSRF attacks via crafted XML with JAXB, aka an XML External Entity (XXE) issue, and a different vulnerability than CVE-2013-4152. NOTE: this issue was SPLIT from CVE-2013-4152 due to different affected versions.

CVE-2013-7315 Affected Spring Framework Versions

1 component(s)
Fixed Versions:
3.2.4.RELEASE
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework:spring-oxm
Maven
< 3.2.4.RELEASE
3.2.4.RELEASE

References

Frequently Asked Questions

What is CVE-2013-7315?
CVE-2013-7315 is a security vulnerability in Spring Framework involving Missing XML Validation in Spring Framework under CWE-112: Missing XML Validation.
Which Spring Framework versions are affected?
Affected versions include releases prior to 3.2.4.RELEASE across affected packages: org.springframework:spring-oxm.
What version fixes CVE-2013-7315?
Upgrading to 3.2.4.RELEASE (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-oxm affected?
Yes, org.springframework:spring-oxm is affected in releases prior to 3.2.4.RELEASE. Upgrade your dependency to 3.2.4.RELEASE or later.
What CWE is associated with CVE-2013-7315?
CVE-2013-7315 is classified under CWE-112: Missing XML Validation (The product accepts XML from an untrusted source but does not validate the XML against the proper schema.).
How can I check Maven dependencies for CVE-2013-7315?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vp63-rrcm-9mph",
  "modified" : "2024-02-27T23:11:42Z",
  "published" : "2022-05-13T01:02:38Z",
  "aliases" : [ "CVE-2013-7315" ],
  "summary" : "Missing XML Validation in Spring Framework",
  "details" : "The Spring MVC in Spring Framework before 3.2.4 and 4.0.0.M1 through 4.0.0.M2 does not disable external entity resolution for the StAX XMLInputFactory, which allows context-dependent attackers to read arbitrary files, cause a denial of service, and conduct CSRF attacks via crafted XML with JAXB, aka an XML External Entity (XXE) issue, and a different vulnerability than CVE-2013-4152.  NOTE: this issue was SPLIT from CVE-2013-4152 due to different affected versions.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-oxm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.4.RELEASE"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.2.3.RELEASE"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-7315"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/issues/15432"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/commit/434735fbf6e7f9051af2ef027657edb99120b173"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/commit/7576274874deeccb6da6b09a8d5bd62e8b5538b7"
  }, {
    "type" : "WEB",
    "url" : "https://jira.spring.io/browse/SPR-10806?redirect=false"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/bugtraq/2013/Aug/154"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2013/Nov/14"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2014/dsa-2842"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/77998"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-112" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T23:18:12Z",
    "nvd_published_at" : "2014-01-23T21:55:00Z"
  }
}