Bug 1208181 (CVE-2015-0225)

Summary: CVE-2015-0225 Cassandra: remote code execution via unauthenticated JMX/RMI interface
Product: [Other] Security Response Reporter: Martin Prpič <mprpic>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: arun.neelicattu+rhbz, chazlett, hrupp, jdoyle, jrusnack, jsanda, jshepherd, loleary, rhq-maint, spinder, theute, twalsh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Cassandra 2.0.14, Cassandra 2.1.4 Doc Type: Bug Fix
Doc Text:
It was found that Apache Cassandra bound an unauthenticated JMX/RMI interface to all network interfaces. A remote attacker able to access the RMI, an API for the transport and remote execution of serialized Java, could use this flaw to execute arbitrary code as the user running Cassandra.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-04 22:21:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1229978, 1229981, 1260632    
Bug Blocks: 1208184, 1275503    
Attachments:
Description Flags
Cassandra rebuild details if needed later. none

Description Martin Prpič 2015-04-01 15:01:02 UTC
It was found that Apache Cassandra bound an unauthenticated JMX/RMI interface to all network interfaces. A remote attacker able to access the RMI, an API for the transport and remote execution of serialized Java, could use this flaw to execute arbitrary code as the user running Cassandra.

This issue is fixed in versions 2.0.14 and 2.1.4 of Cassandra. The 1.2.x version of Cassandra no longer receives updates.

This issue can be mitigated by manually configuring encryption and authentication for JMX as documented at https://wiki.apache.org/cassandra/JmxSecurity .

Upstream announcement:

http://seclists.org/oss-sec/2015/q2/5

Comment 1 Jason Shepherd 2015-06-10 03:19:21 UTC
We have reproduced this issue on JON 3.3

Comment 26 John Sanda 2015-08-23 21:02:45 UTC
I have made the changes to cassandra-jvm.properties and also to cassandra.bat.

https://github.com/jsanda/rhq/commit/f62c598fd80c7e39f1a2885d689add31d7267f8f

Once we have the new Cassandra artifacts published, I will merge the RHQ changes into master and then into the release/jon3.3.x branch.

Comment 36 John Sanda 2015-09-08 13:41:20 UTC
The following commits have been pushed to the release/jon3.3.x branch,

371b7bb9
2a9690e5
29c63808
d78f5f94
3f8ce8fa
8d139b1a
84350375
e8806bc0

Comment 37 Jason Shepherd 2015-10-14 01:43:03 UTC
We aim to fix this issue in the next version of JON, 3.3.4. In the meantime there is mitigation advise found here:

   https://access.redhat.com/node/1543983/

Comment 40 errata-xmlrpc 2015-10-28 14:36:28 UTC
This issue has been addressed in the following products:



Via RHSA-2015:1947 https://rhn.redhat.com/errata/RHSA-2015-1947.html

Comment 41 Simeon Pinder 2015-11-12 16:54:00 UTC
Created attachment 1093412 [details]
Cassandra rebuild details if needed later.

Beaker details:
                      HOSTNAME=kvm-guest-02.rhts.eng.bos.redhat.com
                            JOBID=1061651
                         RECIPEID=2169550
                    RESULT_SERVER=127.0.0.1:7088
                           DISTRO=RHEL-6.7-20150710.n.0
                     ARCHITECTURE=x86_64