CVE-2024-27137: Apache Cassandra Unrestricted Deserialization Of JMX Authentication Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId>
<version>5.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId>
<version>4.1.8</version>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId>
<version>4.0.15</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.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
CVE-2024-27137 Affected Apache Cassandra Versions
3 component(s)| 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?
Which Apache Cassandra versions are affected?
What version fixes CVE-2024-27137?
Is cassandra-all affected?
What is the CVSS score of CVE-2024-27137?
What CWE is associated with CVE-2024-27137?
How can I check Maven dependencies for CVE-2024-27137?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}