CVE-2017-15691: Uimafit core Improper Restriction Of XML External Vulnerability

MODERATE
Advisory Identifier: GHSA-wp2f-hrg2-3r5m
CVSS 6.5
CWE-611
Published
Advisory Summary

CVE-2017-15691 is a MODERATE (CVSS 6.5) improper restriction of xml external vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Uimafit core libraries in the Maven ecosystem. The issue involves improper restriction of xml external entity reference in apache uimaj. Remediation is available by upgrading affected packages to version 2.4.0, 2.10.2, 3.0.0-beta.

CVE-2017-15691 at a Glance

CVE Identifier CVE-2017-15691
GHSA Identifier GHSA-wp2f-hrg2-3r5m
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Uimafit core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2017-15691

To remediate this vulnerability, upgrade all affected Uimafit core 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.apache.uima:uimafit-core fixed: 2.4.0
<dependency>
    <groupId>org.apache.uima</groupId>
    <artifactId>uimafit-core</artifactId>
    <version>2.4.0</version>
</dependency>
org.apache.uima:uimaj-core fixed: 2.10.2
<dependency>
    <groupId>org.apache.uima</groupId>
    <artifactId>uimaj-core</artifactId>
    <version>2.10.2</version>
</dependency>
org.apache.uima:uimaj-core fixed: 3.0.0-beta
<dependency>
    <groupId>org.apache.uima</groupId>
    <artifactId>uimaj-core</artifactId>
    <version>3.0.0-beta</version>
</dependency>
org.apache.uima:uimaj-as-core fixed: 2.10.2
<dependency>
    <groupId>org.apache.uima</groupId>
    <artifactId>uimaj-as-core</artifactId>
    <version>2.10.2</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.apache.uima

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.uima

Analyze the terminal output to locate any version of Uimafit core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.uima 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 Uimafit core, 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

In Apache uimaj prior to 2.10.2, Apache uimaj 3.0.0-xxx prior to 3.0.0-beta, Apache uima-as prior to 2.10.2, Apache uimaFIT prior to 2.4.0, Apache uimaDUCC prior to 2.2.2, this vulnerability relates to an XML external entity expansion (XXE) capability of various XML parsers. UIMA as part of its configuration and operation may read XML from various sources, which could be tainted in ways to cause inadvertent disclosure of local files or other internal content.

CVE-2017-15691 Affected Uimafit core Versions

4 component(s)
Fixed Versions:
2.4.02.10.23.0.0-beta
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.uima:uimafit-core
Maven
< 2.4.0
2.4.0
org.apache.uima:uimaj-core
Maven
< 2.10.2
2.10.2
org.apache.uima:uimaj-core
Maven
≥ 3.0.0-alpha
< 3.0.0-beta
3.0.0-beta
org.apache.uima:uimaj-as-core
Maven
< 2.10.2
2.10.2

References

Frequently Asked Questions

What is CVE-2017-15691?
CVE-2017-15691 is a security vulnerability in Uimafit core involving Improper Restriction of XML External Entity Reference in Apache uimaj under CWE-611: Improper Restriction of XML External Entity Reference.
Which Uimafit core versions are affected?
Affected versions include releases prior to 2.4.0, 2.10.2, 3.0.0-beta across affected packages: org.apache.uima:uimafit-core, org.apache.uima:uimaj-core, org.apache.uima:uimaj-as-core.
What version fixes CVE-2017-15691?
Upgrading to 2.4.0, 2.10.2, 3.0.0-beta (or the latest patched release for your respective branch) resolves the vulnerability.
Is uimafit-core affected?
Yes, org.apache.uima:uimafit-core is affected in releases prior to 2.4.0. Upgrade your dependency to 2.4.0 or later.
Is uimaj-core affected?
Yes, org.apache.uima:uimaj-core is affected in releases prior to 2.10.2, 3.0.0-beta. Upgrade your dependency to 2.10.2, 3.0.0-beta or later.
What is the CVSS score of CVE-2017-15691?
CVE-2017-15691 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2017-15691?
CVE-2017-15691 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-2017-15691?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.uima'. 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-wp2f-hrg2-3r5m",
  "modified" : "2022-07-01T19:32:51Z",
  "published" : "2022-05-14T00:58:02Z",
  "aliases" : [ "CVE-2017-15691" ],
  "summary" : "Improper Restriction of XML External Entity Reference in  Apache uimaj",
  "details" : "In Apache uimaj prior to 2.10.2, Apache uimaj 3.0.0-xxx prior to 3.0.0-beta, Apache uima-as prior to 2.10.2, Apache uimaFIT prior to 2.4.0, Apache uimaDUCC prior to 2.2.2, this vulnerability relates to an XML external entity expansion (XXE) capability of various XML parsers. UIMA as part of its configuration and operation may read XML from various sources, which could be tainted in ways to cause inadvertent disclosure of local files or other internal content.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.uima:uimafit-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.uima:uimaj-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.10.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.uima:uimaj-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-alpha"
      }, {
        "fixed" : "3.0.0-beta"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.0-alpha02"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.uima:uimaj-as-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-15691"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1545"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/00407c65738e625a8cc9d732923a4ab2d8299603cc7c7e5cc2da9c79@%3Ccommits.uima.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://uima.apache.org/security_report#CVE-2017-15691"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-01T19:32:51Z",
    "nvd_published_at" : "2018-04-26T17:29:00Z"
  }
}