CVE-2025-2240: Smallrye fault tolerance core SmallRye Fault Tolerance Out-of-memory (OOM) Vulnerability
HIGHCVE-2025-2240 is a HIGH (CVSS 7.5) smallrye fault tolerance out-of-memory (oom) vulnerability (CWE-1325: Improperly Controlled Sequential Memory Allocation) affecting Smallrye fault tolerance core libraries in the Maven ecosystem. The issue involves smallrye fault tolerance out-of-memory (oom) issue. Remediation is available by upgrading affected packages to version 6.4.2, 6.9.0.
CVE-2025-2240 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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-2240
To remediate this vulnerability, upgrade all affected Smallrye fault tolerance 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>io.smallrye</groupId>
<artifactId>smallrye-fault-tolerance-core</artifactId>
<version>6.4.2</version>
</dependency>
<dependency>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-fault-tolerance-core</artifactId>
<version>6.9.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.smallrye
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-2240, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.smallrye
Analyze the terminal output to locate any version of Smallrye fault tolerance core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.4.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.smallrye 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-1325: Improperly Controlled Sequential Memory Allocation, where the product manages a group of objects or resources and performs a separate memory allocation for each object, but it does not properly limit the total amount of memory that is consumed by all of the combined objects. In Smallrye fault tolerance 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-2025-2240 Affected Smallrye fault tolerance core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.smallrye:smallrye-fault-tolerance-core
|
Maven |
≥ 6.3.0
< 6.4.2
|
6.4.2
|
|
io.smallrye:smallrye-fault-tolerance-core
|
Maven |
≥ 6.5.0
< 6.9.0
|
6.9.0
|
References
Frequently Asked Questions
What is CVE-2025-2240?
Which Smallrye fault tolerance core versions are affected?
What version fixes CVE-2025-2240?
Is smallrye-fault-tolerance-core affected?
What is the CVSS score of CVE-2025-2240?
What CWE is associated with CVE-2025-2240?
How can I check Maven dependencies for CVE-2025-2240?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gfh6-3pqw-x2j4",
"modified" : "2025-05-21T21:36:33Z",
"published" : "2025-03-12T15:32:06Z",
"aliases" : [ "CVE-2025-2240" ],
"summary" : "SmallRye Fault Tolerance out-of-memory (OOM) issue",
"details" : "A flaw was found in Smallrye, where smallrye-fault-tolerance is vulnerable to an out-of-memory (OOM) issue. This vulnerability is externally triggered when calling the metrics URI. Every call creates a new object within meterMap and may lead to a denial of service (DoS) issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.smallrye:smallrye-fault-tolerance-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.3.0"
}, {
"fixed" : "6.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.smallrye:smallrye-fault-tolerance-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.5.0"
}, {
"fixed" : "6.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-2240"
}, {
"type" : "WEB",
"url" : "https://github.com/smallrye/smallrye-fault-tolerance/pull/985"
}, {
"type" : "WEB",
"url" : "https://github.com/smallrye/smallrye-fault-tolerance/pull/985/files#diff-88c4a089e0cb88e4bdf285490e2617c29b9979a778e33957e4448260e286b91aR299"
}, {
"type" : "WEB",
"url" : "https://github.com/smallrye/smallrye-fault-tolerance/commit/e8bcad3d5e8bbac0a3219bd5c13661adf6ed6bbb"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:3376"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:3541"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:3543"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2025-2240"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2351452"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/smallrye/smallrye-fault-tolerance"
}, {
"type" : "WEB",
"url" : "https://smallrye.io/blog/fault-tolerance-6-9-0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1325" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-12T20:19:58Z",
"nvd_published_at" : "2025-03-12T15:15:42Z"
}
}