CVE-2019-10174: Infinispan core Use Of Externally-Controlled Input To Vulnerability

HIGH
Advisory Identifier: GHSA-h47x-2j37-fw5m
CVSS 7.5
CWE-470
Published
Advisory Summary

CVE-2019-10174 is a HIGH (CVSS 7.5) use of externally-controlled input to vulnerability (CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')) affecting Infinispan core libraries in the Maven ecosystem. The issue involves use of externally-controlled input to select classes or code in infinispan. Remediation is available by upgrading affected packages to version 8.2.12.Final, 9.4.17.Final.

CVE-2019-10174 at a Glance

CVE Identifier CVE-2019-10174
GHSA Identifier GHSA-h47x-2j37-fw5m
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Affected Product Infinispan core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2019-10174

To remediate this vulnerability, upgrade all affected Infinispan 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.infinispan:infinispan-core fixed: 8.2.12.Final
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-core</artifactId>
    <version>8.2.12.Final</version>
</dependency>
org.infinispan:infinispan-core fixed: 9.4.17.Final
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-core</artifactId>
    <version>9.4.17.Final</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.infinispan

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.infinispan

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

Note: The mvn dependency:tree -Dincludes=org.infinispan 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-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'), where the product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code. In Infinispan 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

A vulnerability was found in Infinispan such that the invokeAccessibly method from the public class ReflectionUtil allows any application class to invoke private methods in any class with Infinispan's privileges. The attacker can use reflection to introduce new, malicious behavior into the application.

CVE-2019-10174 Affected Infinispan core Versions

2 component(s)
Fixed Versions:
8.2.12.Final9.4.17.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.infinispan:infinispan-core
Maven
< 8.2.12.Final
8.2.12.Final
org.infinispan:infinispan-core
Maven
≥ 9.0.0.Final
< 9.4.17.Final
9.4.17.Final

References

Frequently Asked Questions

What is CVE-2019-10174?
CVE-2019-10174 is a security vulnerability in Infinispan core involving Use of Externally-Controlled Input to Select Classes or Code in Infinispan under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection').
Which Infinispan core versions are affected?
Affected versions include releases prior to 8.2.12.Final, 9.4.17.Final across affected packages: org.infinispan:infinispan-core.
What version fixes CVE-2019-10174?
Upgrading to 8.2.12.Final, 9.4.17.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is infinispan-core affected?
Yes, org.infinispan:infinispan-core is affected in releases prior to 8.2.12.Final, 9.4.17.Final. Upgrade your dependency to 8.2.12.Final, 9.4.17.Final or later.
What is the CVSS score of CVE-2019-10174?
CVE-2019-10174 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-10174?
CVE-2019-10174 is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.).
How can I check Maven dependencies for CVE-2019-10174?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.infinispan'. 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-h47x-2j37-fw5m",
  "modified" : "2022-06-29T13:25:50Z",
  "published" : "2022-05-24T17:01:50Z",
  "aliases" : [ "CVE-2019-10174" ],
  "summary" : "Use of Externally-Controlled Input to Select Classes or Code in Infinispan",
  "details" : "A vulnerability was found in Infinispan such that the invokeAccessibly method from the public class ReflectionUtil allows any application class to invoke private methods in any class with Infinispan's privileges. The attacker can use reflection to introduce new, malicious behavior into the application.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.infinispan:infinispan-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.2.12.Final"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.2.11.Final"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.infinispan:infinispan-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0.Final"
      }, {
        "fixed" : "9.4.17.Final"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.4.16.Final"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10174"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/infinispan/infinispan/commit/5dbb05cfaca01a1a66732b82a0f5ba615ccbd214"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/infinispan/infinispan/commit/7bdc2822ccf79127a488130239c49a5e944e3ca2"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0481"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0727"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10174"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/infinispan/infinispan"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20220210-0018"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-470" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-29T13:25:50Z",
    "nvd_published_at" : "2019-11-25T11:15:00Z"
  }
}