CVE-2026-27315: Cassandra all Apache Cassandra Has Sensitive Information Vulnerability
MODERATECVE-2026-27315 is a MODERATE apache cassandra has sensitive information vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Cassandra all libraries in the Maven ecosystem. The issue involves apache cassandra has sensitive information leak in cqlsh. Remediation is available by upgrading affected packages to version 4.0.20.
CVE-2026-27315 at a Glance
How to Fix CVE-2026-27315
To remediate this vulnerability, upgrade all affected Cassandra all 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>4.0.20</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-2026-27315, 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 Cassandra all in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.20), 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Cassandra all, 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-2026-27315 Affected Cassandra all Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.cassandra:cassandra-all
|
Maven |
≥ 4.0
< 4.0.20
|
4.0.20
|
References
Frequently Asked Questions
What is CVE-2026-27315?
Which Cassandra all versions are affected?
What version fixes CVE-2026-27315?
Is cassandra-all affected?
What CWE is associated with CVE-2026-27315?
How can I check Maven dependencies for CVE-2026-27315?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fh34-c629-p8xj",
"modified" : "2026-04-08T19:31:30Z",
"published" : "2026-04-07T18:31:37Z",
"aliases" : [ "CVE-2026-27315" ],
"summary" : "Apache Cassandra has sensitive Information Leak in cqlsh",
"details" : "Sensitive Information Leak in cqlsh in Apache Cassandra 4.0 allows access to sensitive information, like passwords, from previously executed cqlsh command via ~/.cassandra/cqlsh_history local file access.\n\nUsers are recommended to upgrade to version 4.0.20, which fixes this issue.\n\n--\nDescription: Cassandra's command-line tool, cqlsh, provides a command history feature that allows users to recall previously executed commands using the up/down arrow keys. These history records are saved in the ~/.cassandra/cqlsh_history file in the user's home directory.\n\nHowever, cqlsh does not redact sensitive information when saving command history. This means that if a user executes operations involving passwords (such as logging in or creating users) within cqlsh, these passwords are permanently stored in cleartext in the history file on the disk.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.cassandra:cassandra-all"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0"
}, {
"fixed" : "4.0.20"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27315"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/cassandra"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/CASSANDRA-21180"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/ft77zrk2mzt8qsch4g6jqjj4901d22k3"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/04/07/8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-08T19:31:30Z",
"nvd_published_at" : "2026-04-07T17:16:27Z"
}
}