Vulnerabilities in pkg:maven/org.infinispan/infinispan-query

PACKAGE
Advisory Identifier: GHSA-2q39-w2hw-2pjm
Advisory Summary

CVE-2024-6875 is a MODERATE (CVSS 6.5) infinispan potential out of memory vulnerability (CWE-401: Missing Release of Memory after Effective Lifetime) affecting Infinispan query libraries in the Maven ecosystem. The issue involves infinispan potential out of memory error via rest compare api buffer api. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.infinispan/infinispan-query

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-2q39-w2hw-2pjm CVE-2024-6875 MODERATE Infinispan Potential Out of Memory Error via REST Compare API Buffer API

CVE-2024-6875 at a Glance

CVE Identifier CVE-2024-6875
GHSA Identifier GHSA-2q39-w2hw-2pjm
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-401: Missing Release of Memory after Effective Lifetime
Affected Product Infinispan query
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.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-6875

To remediate this vulnerability, upgrade all affected Infinispan query 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-query fixed: Latest secure release
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-query</artifactId>
    <version>Latest secure release</version>
</dependency>
org.infinispan:infinispan-query fixed: Latest secure release
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-query</artifactId>
    <version>Latest secure release</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-2024-6875, 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 query in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-401: Missing Release of Memory after Effective Lifetime, where the product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. In Infinispan query, 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 the Infinispan component in Red Hat Data Grid. The REST compare API may have a buffer leak and an out of memory error can occur when sending continual requests with large POST data to the REST API.

CVE-2024-6875 Affected Infinispan query Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.infinispan:infinispan-query
Maven
15.1.0.Dev01
All 1 versions
15.1.0.Dev01
None specified
org.infinispan:infinispan-query
Maven
≤ 15.0.5.Final

References

Frequently Asked Questions

What is CVE-2024-6875?
CVE-2024-6875 is a security vulnerability in Infinispan query involving Infinispan Potential Out of Memory Error via REST Compare API Buffer API under CWE-401: Missing Release of Memory after Effective Lifetime.
Which Infinispan query versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.infinispan:infinispan-query.
What version fixes CVE-2024-6875?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is infinispan-query affected?
Yes, org.infinispan:infinispan-query is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-6875?
CVE-2024-6875 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-6875?
CVE-2024-6875 is classified under CWE-401: Missing Release of Memory after Effective Lifetime (The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.).
How can I check Maven dependencies for CVE-2024-6875?
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-2q39-w2hw-2pjm",
  "modified" : "2026-07-21T15:01:34Z",
  "published" : "2025-03-28T21:30:47Z",
  "aliases" : [ "CVE-2024-6875" ],
  "summary" : "Infinispan Potential Out of Memory Error via REST Compare API Buffer API",
  "details" : "A vulnerability was found in the Infinispan component in Red Hat Data Grid. The REST compare API may have a buffer leak and an out of memory error can occur when sending continual requests with large POST data to the REST API.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.infinispan:infinispan-query"
    },
    "versions" : [ "15.1.0.Dev01" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.infinispan:infinispan-query"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "15.0.5.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6875"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/infinispan/infinispan/pull/12645"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/infinispan/infinispan/pull/12663"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-6875"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2298555"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/infinispan/infinispan"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/JDG-7169"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-401" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-31T16:10:04Z",
    "nvd_published_at" : "2025-03-28T21:15:17Z"
  }
}