{"id":2335,"cve":"CVE-2026-86597","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-86597\/","cwe":"CWE-532","cwe_number":532,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/532","cvss_score":6.5,"published":"2026-09-08","owasp":"A09 Security Logging and Monitoring Failures","odc":"Interface","cdc":"Missing Check","category":"Information Leakage","subcategory":"Insecure Handling of Sensitive Data","scope":"Remote","impact":"Information Disclosure","summary":"Sensitive credentials (tokens, keys, URLs, SAML) logged by Snowflake drivers, exposing them to attackers with log read access.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-86597\/","description":"Insertion of sensitive information into log files in the Snowflake Python, Go, JDBC, Node.js, PHP PDO, and ODBC drivers allowed authentication tokens, query-result encryption keys, pre-signed cloud-storage URLs, and SAML assertions to be written to diagnostic logs in circumstances where the available log redaction did not cover all affected log paths and data types. An attacker with read access to the log destination, whether the local filesystem, a log aggregation service, or a CI\/CD artifact store, could obtain credentials and decryption keys that, if still valid at the time of access, could be used to authenticate to the corresponding Snowflake account or cloud-storage object. Successful exploitation requires read access to the log destination, and impact is bounded by credential lifetime and object scope. The fix is available in Snowflake Connector for Python v4.7.3, Snowflake Go Driver v2.2.0, Snowflake JDBC Driver v4.3.4 (including the snowflake-jdbc-fips and snowflake-jdbc-thin), Snowflake Node.js Driver v3.3.0, Snowflake PHP PDO Driver v4.2.0, and Snowflake ODBC Driver v3.20.0. Users must manually upgrade and should securely delete previously generated diagnostic logs containing sensitive information where retention is not required.","solution":"Upgrade to the patched versions:\u202fPython\u202fConnector\u202fv4.7.3;\u202fGo\u202fDriver\u202fv2.2.0;\u202fJDBC\u202fDriver\u202fv4.3.4 (including snowflake\u2011jdbc\u2011fips and snowflake\u2011jdbc\u2011thin);\u202fNode.js\u202fDriver\u202fv3.3.0;\u202fPHP\u202fPDO\u202fDriver\u202fv4.2.0;\u202fODBC\u202fDriver\u202fv3.20.0.","affected_component":"Python, Go, JDBC, Node.js, PHP PDO, ODBC","fixed_by_upgrading":true,"vulnerable_code":"import logging\nimport snowflake.connector\n\nlogger = logging.getLogger(\"snowflake.connector\")\nlogger.setLevel(logging.INFO)\n\ndef run_query():\n    # VULNERABLE: logs authentication token to diagnostic log\n    ctx = snowflake.connector.connect(\n        user=\"my_user\",\n        password=\"my_password\",\n        account=\"my_account\"\n    )\n    logger.info(f\"Authenticated with token: {ctx.session_token}\")\n    cs = ctx.cursor()\n    cs.execute(\"SELECT CURRENT_VERSION()\")\n    result = cs.fetchone()\n    cs.close()\n    ctx.close()\n    return result\n","patched_code":"import logging\nimport snowflake.connector\n\nlogger = logging.getLogger(\"snowflake.connector\")\nlogger.setLevel(logging.INFO)\n\ndef run_query():\n    # FIX: remove logging of authentication token\n    ctx = snowflake.connector.connect(\n        user=\"my_user\",\n        password=\"my_password\",\n        account=\"my_account\"\n    )\n    # No sensitive data logged here\n    cs = ctx.cursor()\n    cs.execute(\"SELECT CURRENT_VERSION()\")\n    result = cs.fetchone()\n    cs.close()\n    ctx.close()\n    return result\n","payload_needed":false,"payload":null,"payload_status":"none","published_fix":[],"references":null}