CVE-2020-15232: Print lib XXE Attack Vulnerability
CRITICALCVE-2020-15232 is a CRITICAL (CVSS 9.3) xxe attack vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Print lib libraries in the Maven ecosystem. The issue involves xxe attack in mapfish print. Remediation is available by upgrading affected packages to version 3.24.
CVE-2020-15232 at a Glance
Security Impact
CVSS: 9.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2020-15232
To remediate this vulnerability, upgrade all affected Print lib 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.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>3.24</version>
</dependency>
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-servlet</artifactId>
<version>3.24</version>
</dependency>
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-standalone</artifactId>
<version>3.24</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.mapfish.print
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-15232, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.mapfish.print
Analyze the terminal output to locate any version of Print lib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.24), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.mapfish.print 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 Print lib, 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-2020-15232 Affected Print lib Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.mapfish.print:print-lib
|
Maven |
≥ 3.0
< 3.24
|
3.24
|
|
org.mapfish.print:print-servlet
|
Maven |
≥ 3.0
< 3.24
|
3.24
|
|
org.mapfish.print:print-standalone
|
Maven |
≥ 3.0
< 3.24
|
3.24
|
References
Frequently Asked Questions
What is CVE-2020-15232?
Which Print lib versions are affected?
What version fixes CVE-2020-15232?
Is print-lib affected?
Is print-servlet affected?
What is the CVSS score of CVE-2020-15232?
What CWE is associated with CVE-2020-15232?
How can I check Maven dependencies for CVE-2020-15232?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vjv6-gq77-3mjw",
"modified" : "2023-06-27T20:27:43Z",
"published" : "2020-07-07T16:32:45Z",
"aliases" : [ "CVE-2020-15232" ],
"summary" : "XXE attack in Mapfish Print",
"details" : "### Impact\nA user can do to an XML External Entity (XXE) attack with the provided SDL style.\n\n### Patches\nUse version >= 3.24\n\n### Workarounds\nNo\n\n### References\n* https://cwe.mitre.org/data/definitions/611.html\n* https://github.com/mapfish/mapfish-print/pull/1397/commits/e1d0527d13db06b2b62ca7d6afb9e97dacd67a0e\n\n### For more information\nIf you have any questions or comments about this advisory Comment the pull request: https://github.com/mapfish/mapfish-print/pull/1397\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mapfish.print:print-lib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0"
}, {
"fixed" : "3.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mapfish.print:print-servlet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0"
}, {
"fixed" : "3.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mapfish.print:print-standalone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0"
}, {
"fixed" : "3.24"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mapfish/mapfish-print/security/advisories/GHSA-vjv6-gq77-3mjw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15232"
}, {
"type" : "WEB",
"url" : "https://github.com/mapfish/mapfish-print/pull/1397"
}, {
"type" : "WEB",
"url" : "https://github.com/mapfish/mapfish-print/pull/1397/commits/e1d0527d13db06b2b62ca7d6afb9e97dacd67a0e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mapfish/mapfish-print"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-07-07T16:32:20Z",
"nvd_published_at" : null
}
}