| name | cis-cassandra41-1.4 |
| description | Ensure latest version of Cassandra is installed |
| category | cis-cassandra |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","cassandra","installation","updates","version-management"] |
| cis_id | 1.4 |
| cis_benchmark | CIS Apache Cassandra 4.1 Benchmark v1.0.0 |
| tech_stack | ["cassandra"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
1.4 Ensure latest version of Cassandra is installed
Profile Applicability
- Level 1 - Cassandra on Linux
Description
The Cassandra installation version, along with the patches, should be the most recent that is compatible with organizational operational needs. When obtaining and installing software packages (typically via apt-get or you can compile the source code), it's imperative that packages (or the source code, tarball) are sourced only from valid and authorized repositories.
For Cassandra, a short list of valid repositories may include:
Rationale
Using the most recent version of Cassandra can help limit the possibilities for vulnerabilities in the software, the installation version applied during setup should be established according to the needs of the organization. Ensure you are using a release that is covered by a level of support which includes regular updates to address vulnerabilities.
Audit
To verify the version of Cassandra you have installed:
cassandra -v
4.0.3 (a/o 2022-03-29)
Released on 2022-02-17
Maintained until 4.3.0 release (May-July 2024)
If an old/unsupported version of Cassandra is installed this is a finding.
Remediation
Upgrade to the latest version of the Cassandra software:
For each node in the cluster:
- Using the nodetool drain command to push all memtables data to SSTables.
- Stop Cassandra services.
- Backup the data set and all of your Cassandra configuration files.
- Download/Update Java if needed.
- Download/Update Python if needed.
- Download the binaries for the latest Cassandra revision from the Cassandra Download Page.
- Install new version of Cassandra.
- Configure new version of Cassandra, taking into account all of your previous settings in your config files(cassandra.yml, cassandrea-env.sh, etc).
- Start Cassandra services.
- Check logs for warnings, errors.
- Using the nodetool to upgrade your SSTables.
- Using the nodetool command to check status of cluster.
Default Value
No default - depends on installation method and time.
References
- http://cassandra.apache.org/doc/latest/getting_started/installing.html#prerequisites