Vulnerabilities in pkg:maven/org.springframework.integration/spring-integration-xml
PACKAGECVE-2019-3772 is a LOW spring-integration-ws and org.springframework.integration:spring-integration-xml vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring-integration-ws and org.springframework.integration:spring-integration-xml. Remediation is available by upgrading affected packages to version 4.3.19, 5.0.11, 5.1.2.
pkg:maven/org.springframework.integration/spring-integration-xml
Vulnerability advisories affecting package pkg:maven/org.springframework.integration/spring-integration-xml. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wr5r-m8pc-85j9 | CVE-2019-3772 | LOW | Improper Restriction of XML External Entity Reference in org.springframework.integration:spring-integration-ws and org.springframework.integration:spring-integration-xml |
CVE-2019-3772 at a Glance
How to Fix CVE-2019-3772
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.integration</groupId>
<artifactId>spring-integration-xml</artifactId>
<version>4.3.19</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-xml</artifactId>
<version>5.0.11</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-xml</artifactId>
<version>5.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-ws</artifactId>
<version>4.3.19</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-ws</artifactId>
<version>5.0.11</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-ws</artifactId>
<version>5.1.2</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.integration
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-3772, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework.integration
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 4.3.19), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework.integration 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
CVE-2019-3772 Affected Spring Framework Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework.integration:spring-integration-xml
|
Maven |
< 4.3.19
|
4.3.19
|
|
org.springframework.integration:spring-integration-xml
|
Maven |
≥ 5.0.0
< 5.0.11
|
5.0.11
|
|
org.springframework.integration:spring-integration-xml
|
Maven |
≥ 5.1.0
< 5.1.2
|
5.1.2
|
|
org.springframework.integration:spring-integration-ws
|
Maven |
< 4.3.19
|
4.3.19
|
|
org.springframework.integration:spring-integration-ws
|
Maven |
≥ 5.0.0
< 5.0.11
|
5.0.11
|
|
org.springframework.integration:spring-integration-ws
|
Maven |
≥ 5.1.0
< 5.1.2
|
5.1.2
|
References
Frequently Asked Questions
What is CVE-2019-3772?
Which Spring Framework versions are affected?
What version fixes CVE-2019-3772?
Is spring-integration-xml affected?
Is spring-integration-ws affected?
What CWE is associated with CVE-2019-3772?
How can I check Maven dependencies for CVE-2019-3772?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wr5r-m8pc-85j9",
"modified" : "2024-03-04T23:42:26Z",
"published" : "2019-01-25T16:18:49Z",
"aliases" : [ "CVE-2019-3772" ],
"summary" : "Improper Restriction of XML External Entity Reference in org.springframework.integration:spring-integration-ws and org.springframework.integration:spring-integration-xml",
"details" : "Spring Integration (spring-integration-xml and spring-integration-ws modules), versions 4.3.18, 5.0.10, 5.1.1, 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.integration:spring-integration-xml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.3.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-xml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.0.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-xml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.1.0"
}, {
"fixed" : "5.1.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-ws"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.3.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-ws"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.0.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework.integration:spring-integration-ws"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.1.0"
}, {
"fixed" : "5.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3772"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-integration/commit/59c69ed40d3755ef59f80872e0ea711adbb13620"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-wr5r-m8pc-85j9"
}, {
"type" : "WEB",
"url" : "https://pivotal.io/security/cve-2019-3772"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/106749"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T22:01:07Z",
"nvd_published_at" : null
}
}