{
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09"
      },
      "title": "cqlsh history sensitive information leak",
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "CWE-532 Insertion of Sensitive Information into Log File",
              "lang": "en",
              "cweId": "CWE-532",
              "type": "CWE"
            }
          ]
        }
      ],
      "source": {
        "defect": [
          "CASSANDRA-21180"
        ],
        "discovery": "EXTERNAL"
      },
      "affected": [
        {
          "vendor": "Apache Software Foundation",
          "product": "Apache Cassandra",
          "collectionURL": "https://downloads.apache.org/cassandra/",
          "packageName": "apache-cassandra",
          "versions": [
            {
              "status": "affected",
              "version": "4.0",
              "lessThanOrEqual": "4.0.19",
              "versionType": "semver"
            }
          ],
          "defaultStatus": "unaffected"
        }
      ],
      "descriptions": [
        {
          "value": "Sensitive Information Leak in cqlsh in Apache Cassandra 4.0 allows access to sensitive information, like passwords, from previously executed cqlsh command via \u00a0~/.cassandra/cqlsh_history\u00a0local 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.",
          "lang": "en",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "Sensitive Information Leak in cqlsh in Apache Cassandra 4.0 allows access to sensitive information, like passwords, from previously executed cqlsh command via <span style=\"background-color: rgb(255, 255, 255);\">&nbsp;~/.cassandra/cqlsh_history&nbsp;<span style=\"background-color: rgb(255, 255, 255);\">local file access.<br></span></span><br>Users are recommended to upgrade to version 4.0.20, which fixes this issue.<br><br>--<br>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.<br><br>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.<br><br><br>"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://issues.apache.org/jira/browse/CASSANDRA-21180",
          "tags": [
            "issue-tracking"
          ]
        },
        {
          "url": "https://lists.apache.org/thread/ft77zrk2mzt8qsch4g6jqjj4901d22k3",
          "tags": [
            "vendor-advisory"
          ]
        }
      ],
      "metrics": [
        {
          "other": {
            "type": "Textual description of severity",
            "content": {
              "text": "low"
            }
          }
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Youlong Chen, Institute of Computing Technology, Chinese Academy of Sciences",
          "type": "reporter"
        }
      ],
      "x_generator": {
        "engine": "Vulnogram 0.2.0"
      }
    }
  },
  "cveMetadata": {
    "cveId": "CVE-2026-27315",
    "assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09",
    "serial": 1,
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}