CVE-2019-3774: Spring Framework Spring-batch-core Vulnerability

LOW
Advisory Identifier: GHSA-3wc8-659g-r88q
CWE-611
Published
Advisory Summary

CVE-2019-3774 is a LOW spring-batch-core vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring-batch-core. Remediation is available by upgrading affected packages to version 3.0.10.RELEASE, 4.0.2.RELEASE, 4.1.1.RELEASE.

CVE-2019-3774 at a Glance

CVE Identifier CVE-2019-3774
GHSA Identifier GHSA-3wc8-659g-r88q
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2019-3774

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.batch:spring-batch-core fixed: 3.0.10.RELEASE
<dependency>
    <groupId>org.springframework.batch</groupId>
    <artifactId>spring-batch-core</artifactId>
    <version>3.0.10.RELEASE</version>
</dependency>
org.springframework.batch:spring-batch-core fixed: 4.0.2.RELEASE
<dependency>
    <groupId>org.springframework.batch</groupId>
    <artifactId>spring-batch-core</artifactId>
    <version>4.0.2.RELEASE</version>
</dependency>
org.springframework.batch:spring-batch-core fixed: 4.1.1.RELEASE
<dependency>
    <groupId>org.springframework.batch</groupId>
    <artifactId>spring-batch-core</artifactId>
    <version>4.1.1.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.batch

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2019-3774, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.springframework.batch

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.0.10.RELEASE), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.springframework.batch 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-611: Improper Restriction of XML External Entity Reference, where 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. 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

Spring Batch versions 3.0.9, 4.0.1, 4.1.0, and older unsupported versions, were susceptible to XML External Entity Injection (XXE) when receiving XML data from untrusted sources.

CVE-2019-3774 Affected Spring Framework Versions

3 component(s)
Fixed Versions:
3.0.10.RELEASE4.0.2.RELEASE4.1.1.RELEASE
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework.batch:spring-batch-core
Maven
< 3.0.10.RELEASE
3.0.10.RELEASE
org.springframework.batch:spring-batch-core
Maven
≥ 4.0.0.RELEASE
< 4.0.2.RELEASE
4.0.2.RELEASE
org.springframework.batch:spring-batch-core
Maven
≥ 4.1.0.RELEASE
< 4.1.1.RELEASE
All 1 versions
4.1.0.RELEASE
4.1.1.RELEASE

References

NVD — CVE-2019-3774 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-3774
lists.apache.org/thread.html/rfea6ee... WEB
https://lists.apache.org/thread.html/rfea6eebfebb13bc015f258e7fa31d4e24a4202601be3b307da28d530@%3Ccommits.servicemix.apache.org%3E
lists.apache.org/thread.html/rf83697... WEB
https://lists.apache.org/thread.html/rf83697efcbcfe1131e31bbc7025cb3ee1db5d9185e9481093b2ef961@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/ree71c6... WEB
https://lists.apache.org/thread.html/ree71c6425d2cc0e36b77bda6902965a657c1e09c7229459811d66474@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/rcd4945... WEB
https://lists.apache.org/thread.html/rcd4945d66d8bb2fc92396af56a70ede4af983a2c98166f1281338346@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/rcd26a5... WEB
https://lists.apache.org/thread.html/rcd26a5409af7356b5f69b2fafae3cf621bff8bf155f50e9ccf9ed5f6@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/rb9fe3a... WEB
https://lists.apache.org/thread.html/rb9fe3ae33246d7f11604a1c85c861cb013a1e32248a43a0c22457107@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/raae74a... WEB
https://lists.apache.org/thread.html/raae74a9290784e20e86fcd4e2525fa8700aeed6f65f3613b5b04bb11@%3Ccommits.servicemix.apache.org%3E
lists.apache.org/thread.html/ra8c757... WEB
https://lists.apache.org/thread.html/ra8c7573911082e9968f4835943045ad0952232bb6314becf23dc3de5@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/ra62a3b... WEB
https://lists.apache.org/thread.html/ra62a3bf48ab4e0e9aaed970b03d79a73224d68a4275858c707542f6c@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/ra329bb... WEB
https://lists.apache.org/thread.html/ra329bb85da9da93ac6f9b5fc0fc5446a3af0ee2a62c5de484da0af54@%3Ccommits.servicemix.apache.org%3E
lists.apache.org/thread.html/r96d90e... WEB
https://lists.apache.org/thread.html/r96d90e59bb12af5e5c631dcf7d7d80857a52bf3dc44d5b85553e7fc4@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/r79991a... WEB
https://lists.apache.org/thread.html/r79991aeb5d0c53c67e400e037c72758a06607752ca2f23b5302dd61f@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/r78645c... WEB
https://lists.apache.org/thread.html/r78645ca0eef44a276e144447fb2087db758b1fb8826d0330b3f0da1a@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/r5fbb63... WEB
https://lists.apache.org/thread.html/r5fbb63e405d2211c16524d33f52e3b122109d3bc88d5f74623fb212d@%3Ccommits.servicemix.apache.org%3E
lists.apache.org/thread.html/r47c7f6... WEB
https://lists.apache.org/thread.html/r47c7f67a3067ec09262eef0705abc42ea1b646699d9198bcaf8dad02@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/r234923... WEB
https://lists.apache.org/thread.html/r2349237482bcec43632d9d78d7d2804520d9a82f4d8b1fd96bb616b8@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/r08e7dd... WEB
https://lists.apache.org/thread.html/r08e7ddc354bdcbf95d88399f18b3d804865034f8bc706095e594b29f@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/r0153a0... WEB
https://lists.apache.org/thread.html/r0153a08177fcfac7584c7b9ea3027f1e8f18f770126f905b9989190e@%3Cissues.servicemix.apache.org%3E
lists.apache.org/thread.html/r012921... WEB
https://lists.apache.org/thread.html/r01292194daa9ed3117b34dabec0c26929f6db13b9613fc144f720d52@%3Cissues.servicemix.apache.org%3E
Spring Framework Source Repository REPOSITORY
https://github.com/spring-projects/spring-batch

Frequently Asked Questions

What is CVE-2019-3774?
CVE-2019-3774 is a security vulnerability in Spring Framework involving spring-batch-core under CWE-611: Improper Restriction of XML External Entity Reference.
Which Spring Framework versions are affected?
Affected versions include releases prior to 3.0.10.RELEASE, 4.0.2.RELEASE, 4.1.1.RELEASE across affected packages: org.springframework.batch:spring-batch-core.
What version fixes CVE-2019-3774?
Upgrading to 3.0.10.RELEASE, 4.0.2.RELEASE, 4.1.1.RELEASE (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-batch-core affected?
Yes, org.springframework.batch:spring-batch-core is affected in releases prior to 3.0.10.RELEASE, 4.0.2.RELEASE, 4.1.1.RELEASE. Upgrade your dependency to 3.0.10.RELEASE, 4.0.2.RELEASE, 4.1.1.RELEASE or later.
What CWE is associated with CVE-2019-3774?
CVE-2019-3774 is classified under 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 can I check Maven dependencies for CVE-2019-3774?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.batch'. 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-3wc8-659g-r88q",
  "modified" : "2025-09-23T15:16:31Z",
  "published" : "2019-01-25T16:18:56Z",
  "aliases" : [ "CVE-2019-3774" ],
  "summary" : "Low severity vulnerability that affects org.springframework.batch:spring-batch-core",
  "details" : "Spring Batch versions 3.0.9, 4.0.1, 4.1.0, and older unsupported versions, were susceptible to XML External Entity Injection (XXE) when receiving XML data from untrusted sources.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.batch:spring-batch-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.10.RELEASE"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.batch:spring-batch-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0.RELEASE"
      }, {
        "fixed" : "4.0.2.RELEASE"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.batch:spring-batch-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0.RELEASE"
      }, {
        "fixed" : "4.1.1.RELEASE"
      } ]
    } ],
    "versions" : [ "4.1.0.RELEASE" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3774"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rfea6eebfebb13bc015f258e7fa31d4e24a4202601be3b307da28d530@%3Ccommits.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rf83697efcbcfe1131e31bbc7025cb3ee1db5d9185e9481093b2ef961@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ree71c6425d2cc0e36b77bda6902965a657c1e09c7229459811d66474@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rcd4945d66d8bb2fc92396af56a70ede4af983a2c98166f1281338346@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rcd26a5409af7356b5f69b2fafae3cf621bff8bf155f50e9ccf9ed5f6@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rb9fe3ae33246d7f11604a1c85c861cb013a1e32248a43a0c22457107@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/raae74a9290784e20e86fcd4e2525fa8700aeed6f65f3613b5b04bb11@%3Ccommits.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra8c7573911082e9968f4835943045ad0952232bb6314becf23dc3de5@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra62a3bf48ab4e0e9aaed970b03d79a73224d68a4275858c707542f6c@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra329bb85da9da93ac6f9b5fc0fc5446a3af0ee2a62c5de484da0af54@%3Ccommits.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r96d90e59bb12af5e5c631dcf7d7d80857a52bf3dc44d5b85553e7fc4@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r79991aeb5d0c53c67e400e037c72758a06607752ca2f23b5302dd61f@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r78645ca0eef44a276e144447fb2087db758b1fb8826d0330b3f0da1a@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r5fbb63e405d2211c16524d33f52e3b122109d3bc88d5f74623fb212d@%3Ccommits.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r47c7f67a3067ec09262eef0705abc42ea1b646699d9198bcaf8dad02@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r2349237482bcec43632d9d78d7d2804520d9a82f4d8b1fd96bb616b8@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r08e7ddc354bdcbf95d88399f18b3d804865034f8bc706095e594b29f@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r0153a08177fcfac7584c7b9ea3027f1e8f18f770126f905b9989190e@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r01292194daa9ed3117b34dabec0c26929f6db13b9613fc144f720d52@%3Cissues.servicemix.apache.org%3E"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spring-projects/spring-batch"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:56:44Z",
    "nvd_published_at" : null
  }
}