# CVE-2026-27315: Apache Cassandra: cqlsh history sensitive information leak

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-532
- **Aliases:** BIT-cassandra-2026-27315, GHSA-fh34-c629-p8xj
- **Published:** 2026-04-07T16:40:51.836Z
- **Modified:** 2026-10-26T22:10:00.163Z

## Who should check

- Projects that depend on Maven package org.apache.cassandra:cassandra-all (\>= 4.0, \< 4.0.20)
- Anyone running Apache Software Foundation Apache Cassandra \>= 4.0, \<= 4.0.19

## Description

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.

Users are recommended to upgrade to version 4.0.20, which fixes this issue.

--
Description: 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.

However, 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.

## Affected and fixed versions

- Maven `org.apache.cassandra:cassandra-all`: affected \>= 4.0, \< 4.0.20; fixed 4.0.20 (osv)
- Apache Software Foundation Apache Cassandra: \>= 4.0, \<= 4.0.19 (cvelist)

## Mitigation

- Upgrade org.apache.cassandra:cassandra-all to 4.0.20 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27315. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27315.md
Affected: org.apache.cassandra:cassandra-all >= 4.0, < 4.0.20
Fixed in: 4.0.20

Steps:
1. Search this machine and project for org.apache.cassandra:cassandra-all (Maven), Apache Software Foundation Apache Cassandra: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27315 being exploited?

There is no confirmed exploitation: CVE-2026-27315 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27315?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-27315?

org.apache.cassandra:cassandra-all \>= 4.0, \< 4.0.20.

### Is there a fix for CVE-2026-27315?

Yes. Fixed in 4.0.20. Upgrade org.apache.cassandra:cassandra-all to 4.0.20 or later.

### How do I check if I'm affected by CVE-2026-27315?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/ft77zrk2mzt8qsch4g6jqjj4901d22k3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27315>
- patch: <https://issues.apache.org/jira/browse/CASSANDRA-21180>
- other: <http://www.openwall.com/lists/oss-security/2026/04/07/8>
- other: <https://github.com/apache/cassandra>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27315>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fh34-c629-p8xj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27315> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27315>
