Vulnerabilities in pkg:maven/org.mapfish.print/print-standalone

PACKAGE
Advisory Identifier: GHSA-vjv6-gq77-3mjw
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.mapfish.print/print-standalone

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.mapfish.print/print-standalone. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vjv6-gq77-3mjw CVE-2020-15232 CRITICAL XXE attack in Mapfish Print
GHSA-w534-q4xf-h5v2 CVE-2020-15231 LOW XSS in Mapfish Print relating to JSONP support

CVE-2020-15232 at a Glance

CVE Identifier CVE-2020-15232
GHSA Identifier GHSA-vjv6-gq77-3mjw
Severity CRITICAL
CVSS v3.1 Base Score 9.3
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Print lib
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

org.mapfish.print:print-lib fixed: 3.24
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>3.24</version>
</dependency>
org.mapfish.print:print-servlet fixed: 3.24
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-servlet</artifactId>
    <version>3.24</version>
</dependency>
org.mapfish.print:print-standalone fixed: 3.24
<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-standalone</artifactId>
    <version>3.24</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.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

### Impact A user can do to an XML External Entity (XXE) attack with the provided SDL style. ### Patches Use version >= 3.24 ### Workarounds No ### References * https://cwe.mitre.org/data/definitions/611.html * https://github.com/mapfish/mapfish-print/pull/1397/commits/e1d0527d13db06b2b62ca7d6afb9e97dacd67a0e ### For more information If you have any questions or comments about this advisory Comment the pull request: https://github.com/mapfish/mapfish-print/pull/1397

CVE-2020-15232 Affected Print lib Versions

3 component(s)
Fixed Versions:
3.24
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?
CVE-2020-15232 is a security vulnerability in Print lib involving XXE attack in Mapfish Print under CWE-611: Improper Restriction of XML External Entity Reference.
Which Print lib versions are affected?
Affected versions include releases prior to 3.24 across affected packages: org.mapfish.print:print-lib, org.mapfish.print:print-servlet, org.mapfish.print:print-standalone.
What version fixes CVE-2020-15232?
Upgrading to 3.24 (or the latest patched release for your respective branch) resolves the vulnerability.
Is print-lib affected?
Yes, org.mapfish.print:print-lib is affected in releases prior to 3.24. Upgrade your dependency to 3.24 or later.
Is print-servlet affected?
Yes, org.mapfish.print:print-servlet is affected in releases prior to 3.24. Upgrade your dependency to 3.24 or later.
What is the CVSS score of CVE-2020-15232?
CVE-2020-15232 has a CVSS v3.1 base score of 9.3 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2020-15232?
CVE-2020-15232 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-2020-15232?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.mapfish.print'. 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-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
  }
}