CVE-2019-10174: Infinispan core Use Of Externally-Controlled Input To Vulnerability
HIGHCVE-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
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).
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.
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<version>8.2.12.Final</version>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<version>9.4.17.Final</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.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
CVE-2019-10174 Affected Infinispan core Versions
2 component(s)| 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?
Which Infinispan core versions are affected?
What version fixes CVE-2019-10174?
Is infinispan-core affected?
What is the CVSS score of CVE-2019-10174?
What CWE is associated with CVE-2019-10174?
How can I check Maven dependencies for CVE-2019-10174?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}