The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27315

CVE-2026-27315: Apache Cassandra Information Disclosure

CVE-2026-27315 is an information disclosure flaw in Apache Cassandra cqlsh that exposes sensitive data like passwords in command history files. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-27315 Overview

A sensitive information leak vulnerability exists in Apache Cassandra's command-line tool, cqlsh, affecting version 4.0. The vulnerability allows unauthorized access to sensitive information, including passwords, through the ~/.cassandra/cqlsh_history local file. The command history feature in cqlsh saves previously executed commands to this file without redacting sensitive data. When users execute operations involving passwords—such as logging in or creating users—these credentials are permanently stored in cleartext in the history file on disk.

Critical Impact

Local attackers with file system access can extract cleartext passwords and other sensitive credentials from the cqlsh command history file, potentially compromising Cassandra database authentication.

Affected Products

  • Apache Cassandra 4.0 (versions prior to 4.0.20)
  • Apache Cassandra cqlsh command-line tool

Discovery Timeline

  • April 7, 2026 - CVE-2026-27315 published to NVD
  • April 9, 2026 - Last updated in NVD database

Technical Details for CVE-2026-27315

Vulnerability Analysis

This vulnerability is classified under CWE-532 (Insertion of Sensitive Information into Log File). The cqlsh tool provides a command history feature that allows users to recall previously executed commands using the up/down arrow keys. This functionality mirrors standard shell behavior for user convenience. However, the implementation fails to implement proper sanitization of sensitive data before persisting command history to disk.

When a database administrator or user executes commands containing authentication credentials, user creation statements, or password changes, these commands are written verbatim to ~/.cassandra/cqlsh_history. This creates a persistent record of plaintext credentials accessible to any local user with read permissions to the file. The vulnerability requires local access, meaning an attacker would need filesystem-level access to the target system.

Root Cause

The root cause of this vulnerability is the absence of sensitive data redaction in the cqlsh command history storage mechanism. The tool captures and persists all executed commands without filtering or masking credential-related content. Commands such as CREATE USER, ALTER USER, or LOGIN that include password parameters are stored exactly as entered, including plaintext password values.

Attack Vector

Exploitation of this vulnerability requires local access to the system running cqlsh. An attacker with read access to the user's home directory can directly access the ~/.cassandra/cqlsh_history file and extract any previously entered credentials. This attack vector is particularly concerning in shared hosting environments, multi-user systems, or scenarios where local privilege escalation has occurred. The attacker can then use extracted credentials to authenticate to Cassandra databases, potentially gaining access to sensitive data or administrative capabilities.

The attack scenario involves:

  1. An attacker gains local file system access to a system where Cassandra administrators use cqlsh
  2. The attacker reads the contents of ~/.cassandra/cqlsh_history
  3. Passwords and credentials from previous sessions are extracted in plaintext
  4. The attacker authenticates to Cassandra using the harvested credentials

Detection Methods for CVE-2026-27315

Indicators of Compromise

  • Unauthorized read access attempts to ~/.cassandra/cqlsh_history files across user home directories
  • Unusual authentication patterns in Cassandra logs using credentials that may have been harvested
  • File access audit events showing non-owner reads of cqlsh history files
  • Evidence of credential harvesting tools scanning for common history file locations

Detection Strategies

  • Implement file integrity monitoring (FIM) on ~/.cassandra/cqlsh_history files to detect unauthorized access
  • Configure auditd or equivalent file access logging for sensitive configuration and history files
  • Monitor Cassandra authentication logs for login attempts from unexpected sources using legitimate credentials
  • Deploy endpoint detection to identify credential harvesting activities targeting history files

Monitoring Recommendations

  • Enable audit logging for file access events in directories containing sensitive history files
  • Establish baseline access patterns for cqlsh history files and alert on deviations
  • Integrate Cassandra authentication logs with SIEM platforms for correlation analysis
  • Monitor for privilege escalation attempts that could lead to history file access

How to Mitigate CVE-2026-27315

Immediate Actions Required

  • Upgrade Apache Cassandra to version 4.0.20 or later, which contains the fix for this vulnerability
  • Review and clear existing ~/.cassandra/cqlsh_history files on all systems where cqlsh has been used
  • Rotate any credentials that may have been stored in cqlsh history files
  • Restrict file permissions on ~/.cassandra/cqlsh_history to owner-only access (chmod 600)

Patch Information

Apache has released version 4.0.20 which fixes this sensitive information leak issue. Users should upgrade to this version or later to ensure proper handling of sensitive command history. For additional technical details, refer to the Apache JIRA Issue CASSANDRA-21180 and the Apache Mailing List Thread.

Workarounds

  • Disable command history in cqlsh by setting HISTFILE to /dev/null before launching the tool
  • Use environment variables or secure credential stores instead of entering passwords directly in cqlsh
  • Implement a cron job or script to periodically clear or sanitize the cqlsh history file
  • Configure restrictive file permissions on the .cassandra directory and its contents
bash
# Secure cqlsh history file permissions and disable history
chmod 600 ~/.cassandra/cqlsh_history
chmod 700 ~/.cassandra

# Disable cqlsh history by setting HISTFILE to /dev/null
export CQLSH_HISTFILE=/dev/null

# Remove existing history containing potential credentials
rm -f ~/.cassandra/cqlsh_history

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechApache Cassandra

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Technical References
  • Apache JIRA Issue CASSANDRA-21180

  • Apache Mailing List Thread

  • OpenWall OSS-Security Post
  • Related CVEs
  • CVE-2020-13946: Apache Cassandra Info Disclosure Flaw

  • CVE-2026-32588: Apache Cassandra DoS Vulnerability

  • CVE-2026-27314: Apache Cassandra Privilege Escalation Flaw

  • CVE-2025-23015: Apache Cassandra Privilege Escalation
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English