CVE-2013-6429: Spring Framework Cross-Site Request Forgery Vulnerability

MODERATE
Advisory Identifier: GHSA-g6hf-f9cq-q7w7
CWE-352
Published
Advisory Summary

CVE-2013-6429 is a MODERATE cross-site request forgery vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Spring Framework libraries in the Maven ecosystem. The issue involves cross-site request forgery in spring framework. Remediation is available by upgrading affected packages to version 3.2.5.RELEASE.

CVE-2013-6429 at a Glance

CVE Identifier CVE-2013-6429
GHSA Identifier GHSA-g6hf-f9cq-q7w7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-6429

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-web fixed: 3.2.5.RELEASE
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>3.2.5.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-6429, 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.5.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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. 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 SourceHttpMessageConverter in Spring MVC in Spring Framework before 3.2.5 and 4.0.0.M1 through 4.0.0.RC1 does not disable external entity resolution, which allows remote attackers to read arbitrary files, cause a denial of service, and conduct CSRF attacks via crafted XML, aka an XML External Entity (XXE) issue, and a different vulnerability than CVE-2013-4152 and CVE-2013-7315.

CVE-2013-6429 Affected Spring Framework Versions

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

References

Frequently Asked Questions

What is CVE-2013-6429?
CVE-2013-6429 is a security vulnerability in Spring Framework involving Cross-Site Request Forgery in Spring Framework under CWE-352: Cross-Site Request Forgery (CSRF).
Which Spring Framework versions are affected?
Affected versions include releases prior to 3.2.5.RELEASE across affected packages: org.springframework:spring-web.
What version fixes CVE-2013-6429?
Upgrading to 3.2.5.RELEASE (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-web affected?
Yes, org.springframework:spring-web is affected in releases prior to 3.2.5.RELEASE. Upgrade your dependency to 3.2.5.RELEASE or later.
What CWE is associated with CVE-2013-6429?
CVE-2013-6429 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Maven dependencies for CVE-2013-6429?
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-g6hf-f9cq-q7w7",
  "modified" : "2024-02-27T23:02:19Z",
  "published" : "2022-05-13T01:02:39Z",
  "aliases" : [ "CVE-2013-6429" ],
  "summary" : "Cross-Site Request Forgery in Spring Framework",
  "details" : "The SourceHttpMessageConverter in Spring MVC in Spring Framework before 3.2.5 and 4.0.0.M1 through 4.0.0.RC1 does not disable external entity resolution, which allows remote attackers to read arbitrary files, cause a denial of service, and conduct CSRF attacks via crafted XML, aka an XML External Entity (XXE) issue, and a different vulnerability than CVE-2013-4152 and CVE-2013-7315.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.5.RELEASE"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.2.4.RELEASE"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-6429"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/issues/15704"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/commit/2ae6a6a3415eebc57babcb9d3e5505887eda6d8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/commit/7387cb990e35b0f1b573faf29d4f9ae183d7a5e"
  }, {
    "type" : "WEB",
    "url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05324755"
  }, {
    "type" : "WEB",
    "url" : "https://jira.spring.io/browse/SPR-11078?redirect=false"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2014-0400.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/57915"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T23:20:49Z",
    "nvd_published_at" : "2014-01-26T16:58:00Z"
  }
}