Vulnerabilities in pkg:maven/org.springframework/spring-oxm
PACKAGECVE-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.
pkg:maven/org.springframework/spring-oxm
Vulnerability advisories affecting package pkg:maven/org.springframework/spring-oxm. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vp63-rrcm-9mph | CVE-2013-7315 | MODERATE | Missing XML Validation in Spring Framework |
| GHSA-rp4p-g69r-438x | CVE-2013-4152 | MODERATE | Cross-Site Request Forgery in Spring Framework |
CVE-2013-7315 at a Glance
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.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<version>3.2.4.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-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
CVE-2013-7315 Affected Spring Framework Versions
1 component(s)| 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?
Which Spring Framework versions are affected?
What version fixes CVE-2013-7315?
Is spring-oxm affected?
What CWE is associated with CVE-2013-7315?
How can I check Maven dependencies for CVE-2013-7315?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}