CVE-2015-0225: Apache cassandra Improper Neutralization Of Special Elements Vulnerability
HIGHCVE-2015-0225 is a HIGH improper neutralization of special elements vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Apache cassandra libraries in the Maven ecosystem. The issue involves improper neutralization of special elements used in a command in apache cassandra. Remediation is available by upgrading affected packages to version 2.0.14, 2.1.4.
CVE-2015-0225 at a Glance
How to Fix CVE-2015-0225
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>apache-cassandra</artifactId>
<version>2.0.14</version>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>apache-cassandra</artifactId>
<version>2.1.4</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-2015-0225, 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 2.0.14), 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-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. 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-2015-0225 Affected Apache cassandra Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.cassandra:apache-cassandra
|
Maven |
≥ 1.2.0
< 2.0.14
|
2.0.14
|
|
org.apache.cassandra:apache-cassandra
|
Maven |
≥ 2.1.0
< 2.1.4
|
2.1.4
|
References
Frequently Asked Questions
What is CVE-2015-0225?
Which Apache cassandra versions are affected?
What version fixes CVE-2015-0225?
Is apache-cassandra affected?
What CWE is associated with CVE-2015-0225?
How can I check Maven dependencies for CVE-2015-0225?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w7f2-gjxf-2gm9",
"modified" : "2022-07-06T20:40:57Z",
"published" : "2022-05-14T02:49:56Z",
"aliases" : [ "CVE-2015-0225" ],
"summary" : "Improper Neutralization of Special Elements used in a Command in Apache Cassandra",
"details" : "The default configuration in Apache Cassandra 1.2.0 through 1.2.19, 2.0.0 through 2.0.13, and 2.1.0 through 2.1.3 binds an unauthenticated JMX/RMI interface to all network interfaces, which allows remote attackers to execute arbitrary Java code via an RMI request.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cassandra:apache-cassandra"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "2.0.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cassandra:apache-cassandra"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-0225"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/131249/Apache-Cassandra-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-1947.html"
}, {
"type" : "WEB",
"url" : "http://www.mail-archive.com/user@cassandra.apache.org/msg41819.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T20:40:57Z",
"nvd_published_at" : "2015-04-03T14:59:00Z"
}
}