CVE-2024-27137: Apache Cassandra Unrestricted Deserialization Of JMX Authentication Vulnerability

MODERATE
Advisory Identifier: GHSA-rgfx-7p65-3ff4
CVSS 5.9
CWE-668
Published
Advisory Summary

CVE-2024-27137 is a MODERATE (CVSS 5.9) unrestricted deserialization of jmx authentication vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Apache Cassandra libraries in the Maven ecosystem. The issue involves unrestricted deserialization of jmx authentication credentials. Remediation is available by upgrading affected packages to version 5.0.3, 4.1.8, 4.0.15.

CVE-2024-27137 at a Glance

CVE Identifier CVE-2024-27137
GHSA Identifier GHSA-rgfx-7p65-3ff4
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Apache Cassandra
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

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

How to Fix CVE-2024-27137

To remediate this vulnerability, upgrade all affected Apache Cassandra 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.apache.cassandra:cassandra-all fixed: 5.0.3
<dependency>
    <groupId>org.apache.cassandra</groupId>
    <artifactId>cassandra-all</artifactId>
    <version>5.0.3</version>
</dependency>
org.apache.cassandra:cassandra-all fixed: 4.1.8
<dependency>
    <groupId>org.apache.cassandra</groupId>
    <artifactId>cassandra-all</artifactId>
    <version>4.1.8</version>
</dependency>
org.apache.cassandra:cassandra-all fixed: 4.0.15
<dependency>
    <groupId>org.apache.cassandra</groupId>
    <artifactId>cassandra-all</artifactId>
    <version>4.0.15</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.apache.cassandra

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-27137, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.cassandra

Analyze the terminal output to locate any version of Apache Cassandra in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.3), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.cassandra 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Apache Cassandra, 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

In Apache Cassandra it is possible for a local attacker without access to the Apache Cassandra process or configuration files to manipulate the RMI registry to perform a man-in-the-middle attack and capture user names and passwords used to access the JMX interface. The attacker can then use these credentials to access the JMX interface and perform unauthorized operations. This is same vulnerability that CVE-2020-13946 was issued for, but the Java option was changed in JDK10. This issue affects Apache Cassandra from 4.0.2 through 5.0.2 running Java 11. Operators are recommended to upgrade to a release equal to or later than 4.0.15, 4.1.8, or 5.0.3 which fixes the issue.

CVE-2024-27137 Affected Apache Cassandra Versions

3 component(s)
Fixed Versions:
5.0.34.1.84.0.15
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.cassandra:cassandra-all
Maven
≥ 5.0-beta1
< 5.0.3
5.0.3
org.apache.cassandra:cassandra-all
Maven
≥ 4.1.0
< 4.1.8
4.1.8
org.apache.cassandra:cassandra-all
Maven
≥ 4.0.2
< 4.0.15
4.0.15

References

Frequently Asked Questions

What is CVE-2024-27137?
CVE-2024-27137 is a security vulnerability in Apache Cassandra involving unrestricted deserialization of JMX authentication credentials under CWE-668: Exposure of Resource to Wrong Sphere.
Which Apache Cassandra versions are affected?
Affected versions include releases prior to 5.0.3, 4.1.8, 4.0.15 across affected packages: org.apache.cassandra:cassandra-all.
What version fixes CVE-2024-27137?
Upgrading to 5.0.3, 4.1.8, 4.0.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cassandra-all affected?
Yes, org.apache.cassandra:cassandra-all is affected in releases prior to 5.0.3, 4.1.8, 4.0.15. Upgrade your dependency to 5.0.3, 4.1.8, 4.0.15 or later.
What is the CVSS score of CVE-2024-27137?
CVE-2024-27137 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-27137?
CVE-2024-27137 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check Maven dependencies for CVE-2024-27137?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.cassandra'. 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-rgfx-7p65-3ff4",
  "modified" : "2025-02-18T22:31:37Z",
  "published" : "2025-02-04T12:30:59Z",
  "aliases" : [ "CVE-2024-27137" ],
  "summary" : "Apache Cassandra: unrestricted deserialization of JMX authentication credentials",
  "details" : "In Apache Cassandra it is possible for a local attacker without access to the Apache Cassandra process or configuration files to manipulate the RMI registry to perform a man-in-the-middle attack and capture user names and passwords used to access the JMX interface. The attacker can then use these credentials to access the JMX interface and perform unauthorized operations.\n\nThis is same vulnerability that CVE-2020-13946 was issued for, but the Java option was changed in JDK10.\n\nThis issue affects Apache Cassandra from 4.0.2 through 5.0.2 running Java 11.\n\nOperators are recommended to upgrade to a release equal to or later than 4.0.15, 4.1.8, or 5.0.3 which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cassandra:cassandra-all"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0-beta1"
      }, {
        "fixed" : "5.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cassandra:cassandra-all"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.1.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.cassandra:cassandra-all"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.2"
      }, {
        "fixed" : "4.0.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27137"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/cassandra"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/jsk87d9yv8r204mgqpz1qxtp5wcrpysm"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20250214-0004"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-668" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-04T18:39:25Z",
    "nvd_published_at" : "2025-02-04T11:15:08Z"
  }
}