CVE-2025-2240: Smallrye fault tolerance core SmallRye Fault Tolerance Out-of-memory (OOM) Vulnerability

HIGH
Advisory Identifier: GHSA-gfh6-3pqw-x2j4
CVSS 7.5
CWE-1325
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-2240
GHSA Identifier GHSA-gfh6-3pqw-x2j4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1325: Improperly Controlled Sequential Memory Allocation
Affected Product Smallrye fault tolerance core
Package Ecosystem Maven
Published Date
Last Updated

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).

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

io.smallrye:smallrye-fault-tolerance-core fixed: 6.4.2
<dependency>
    <groupId>io.smallrye</groupId>
    <artifactId>smallrye-fault-tolerance-core</artifactId>
    <version>6.4.2</version>
</dependency>
io.smallrye:smallrye-fault-tolerance-core fixed: 6.9.0
<dependency>
    <groupId>io.smallrye</groupId>
    <artifactId>smallrye-fault-tolerance-core</artifactId>
    <version>6.9.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=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

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.

CVE-2025-2240 Affected Smallrye fault tolerance core Versions

2 component(s)
Fixed Versions:
6.4.26.9.0
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?
CVE-2025-2240 is a security vulnerability in Smallrye fault tolerance core involving SmallRye Fault Tolerance out-of-memory (OOM) issue under CWE-1325: Improperly Controlled Sequential Memory Allocation.
Which Smallrye fault tolerance core versions are affected?
Affected versions include releases prior to 6.4.2, 6.9.0 across affected packages: io.smallrye:smallrye-fault-tolerance-core.
What version fixes CVE-2025-2240?
Upgrading to 6.4.2, 6.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is smallrye-fault-tolerance-core affected?
Yes, io.smallrye:smallrye-fault-tolerance-core is affected in releases prior to 6.4.2, 6.9.0. Upgrade your dependency to 6.4.2, 6.9.0 or later.
What is the CVSS score of CVE-2025-2240?
CVE-2025-2240 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-2240?
CVE-2025-2240 is classified under CWE-1325: Improperly Controlled Sequential Memory Allocation (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.).
How can I check Maven dependencies for CVE-2025-2240?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.smallrye'. 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-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"
  }
}