5.5medium
Apache Cassandra: cqlsh history sensitive information leak
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-fh34-c629-p8xjBIT-CASSANDRA-2026-27315
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
| Product or package | Versions | Reported by |
|---|---|---|
| apache-cassandra | from 4.0 up to 4.0.19 | CVE List |
| org.apache.cassandra:cassandra-all (Maven) | from 4.0 before 4.0.20 | GitHub Advisory Database |
| apache cassandra | from 4.0.0 before 4.0.20 | NVD |
| cassandra (Bitnami) | from 4.0.0 before 4.0.20 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | 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 |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Fuga de información sensible en cqlsh en Apache Cassandra 4.0 permite el acceso a información sensible, como contraseñas, de comandos cqlsh ejecutados previamente a través del acceso al archivo local ~/.cassandra/cqlsh_history. Se recomienda a los usuarios actualizar a la versión 4.0.20, que corrige este problema. -- Descripción: La herramienta de línea de comandos de Cassandra, cqlsh, proporciona una función de historial de comandos que permite a los usuarios recuperar comandos ejecutados previamente usando las teclas de flecha arriba/abajo. Estos registros de historial se guardan en el archivo ~/.cassandra/cqlsh_history en el directorio de inicio del usuario. Sin embargo, cqlsh no redacta información sensible al guardar el historial de comandos. Esto significa que si un usuario ejecuta operaciones que involucran contraseñas (como iniciar sesión o crear usuarios) dentro de cqlsh, estas contraseñas se almacenan permanentemente en texto claro en el archivo de historial en el disco.
References
| https://issues.apache.org/jira/browse/CASSANDRA-21180 | advisory, issue-tracking, patch, vendor-advisory, web | |
| https://lists.apache.org/thread/ft77zrk2mzt8qsch4g6jqjj4901d22k3 | advisory, mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2026/04/07/8 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-27315 | advisory, web | |
| https://github.com/apache/cassandra | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27315 changed 2026-04-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fh34-c629-p8xj changed 2026-04-09 | CC-BY-4.0 |
| NVD | CVE-2026-27315 changed 2026-10-26 | Public domain |
| Bitnami Vulnerability Database | BIT-CASSANDRA-2026-27315 changed 2026-09-08 | Apache-2.0 |