CVE-2017-2638: Infinispan server core Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-mvxp-3j62-jqr6
CVSS 6.5
CWE-287
Published
Advisory Summary

CVE-2017-2638 is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-287: Improper Authentication) affecting Infinispan server core libraries in the Maven ecosystem. The issue involves infinispan rest api does not enforce auth constraints. Remediation is available by upgrading affected packages to version 9.0.0.

CVE-2017-2638 at a Glance

CVE Identifier CVE-2017-2638
GHSA Identifier GHSA-mvxp-3j62-jqr6
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-287: Improper Authentication
Affected Product Infinispan server 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:N/UI:N/S:U/C:L/I:L/A:N).

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

How to Fix CVE-2017-2638

To remediate this vulnerability, upgrade all affected Infinispan server 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-server-core fixed: 9.0.0
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-server-core</artifactId>
    <version>9.0.0</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-2017-2638, 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 server core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.0.0), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Infinispan server 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

It was found that the REST API in Infinispan before version 9.0.0 did not properly enforce auth constraints. An attacker could use this vulnerability to read or modify data in the default cache or a known cache name.

CVE-2017-2638 Affected Infinispan server core Versions

1 component(s)
Fixed Versions:
9.0.0
Product / Package Ecosystem Affected Versions Fixed Version
org.infinispan:infinispan-server-core
Maven
< 9.0.0
9.0.0

References

Frequently Asked Questions

What is CVE-2017-2638?
CVE-2017-2638 is a security vulnerability in Infinispan server core involving Infinispan Rest API Does Not Enforce Auth Constraints under CWE-287: Improper Authentication.
Which Infinispan server core versions are affected?
Affected versions include releases prior to 9.0.0 across affected packages: org.infinispan:infinispan-server-core.
What version fixes CVE-2017-2638?
Upgrading to 9.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is infinispan-server-core affected?
Yes, org.infinispan:infinispan-server-core is affected in releases prior to 9.0.0. Upgrade your dependency to 9.0.0 or later.
What is the CVSS score of CVE-2017-2638?
CVE-2017-2638 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2017-2638?
CVE-2017-2638 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Maven dependencies for CVE-2017-2638?
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-mvxp-3j62-jqr6",
  "modified" : "2023-07-31T22:13:08Z",
  "published" : "2022-05-13T01:36:52Z",
  "aliases" : [ "CVE-2017-2638" ],
  "summary" : "Infinispan Rest API Does Not Enforce Auth Constraints",
  "details" : "It was found that the REST API in Infinispan before version 9.0.0 did not properly enforce auth constraints. An attacker could use this vulnerability to read or modify data in the default cache or a known cache name.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.infinispan:infinispan-server-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-2638"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/infinispan/infinispan/pull/4936"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-2638"
  }, {
    "type" : "WEB",
    "url" : "https://issues.jboss.org/browse/ISPN-7485"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2017-1097.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/97964"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-31T22:13:08Z",
    "nvd_published_at" : "2018-07-16T13:29:00Z"
  }
}