Vulnerabilities in pkg:maven/org.infinispan/infinispan-query
PACKAGECVE-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.
pkg:maven/org.infinispan/infinispan-query
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
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).
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.
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-query</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-query</artifactId>
<version>Latest secure release</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-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
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?
Which Infinispan query versions are affected?
What version fixes CVE-2024-6875?
Is infinispan-query affected?
What is the CVSS score of CVE-2024-6875?
What CWE is associated with CVE-2024-6875?
How can I check Maven dependencies for CVE-2024-6875?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}