Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-24794

CVE-2025-24794: Snowflake Connector Privilege Escalation

CVE-2025-24794 is a local privilege escalation vulnerability in Snowflake Connector for Python caused by unsafe pickle serialization in the OCSP response cache. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-24794 Overview

The Snowflake Connector for Python contains an insecure deserialization vulnerability in its OCSP response cache implementation. The connector, which provides an interface for developing Python applications that connect to Snowflake and perform standard database operations, uses Python's pickle module as the serialization format for caching OCSP (Online Certificate Status Protocol) responses. This design flaw can potentially lead to local privilege escalation when a malicious actor can manipulate the cache file.

Critical Impact

Local attackers with write access to the OCSP cache file can execute arbitrary code with the privileges of the application using the Snowflake Connector, potentially leading to full system compromise.

Affected Products

  • Snowflake Connector for Python versions 2.7.12 through 3.13.0
  • Python applications using affected connector versions for Snowflake database connectivity
  • Systems with writable OCSP response cache directories accessible to untrusted users

Discovery Timeline

  • January 29, 2025 - CVE-2025-24794 published to NVD
  • August 25, 2025 - Last updated in NVD database

Technical Details for CVE-2025-24794

Vulnerability Analysis

This vulnerability is classified under CWE-502 (Deserialization of Untrusted Data), a well-known class of security issues in Python applications. The Snowflake Connector uses pickle serialization to cache OCSP responses for certificate validation, which is inherently dangerous when the cache file can be modified by untrusted parties.

Python's pickle module is known to be insecure when deserializing data from untrusted sources because it can execute arbitrary Python code during the deserialization process. An attacker who can write to the OCSP cache file location can craft a malicious pickle payload that executes code when the connector loads the cache.

The vulnerability requires local access to the system where the connector is running, making it a local privilege escalation vector rather than a remote attack. The attack complexity is low, requiring only basic write access to the cache file location.

Root Cause

The root cause is the use of Python's pickle module for serializing and deserializing OCSP response cache data. Pickle is fundamentally unsafe for untrusted data because it allows arbitrary code execution during deserialization through the __reduce__ method or similar mechanisms. The cache files stored by the connector could be modified by a local attacker to contain malicious serialized objects.

Attack Vector

The attack requires local access to the system running the Snowflake Connector for Python. An attacker with write permissions to the OCSP cache file can replace or modify the cached data with a malicious pickle payload. When the connector subsequently reads and deserializes this cache file, the malicious code executes with the privileges of the application.

The fix introduces secure file handling through the owner_rw_opener function and adds a load_if_file_exists parameter to control cache loading behavior:

python
     ProgrammingError,
     ServiceUnavailableError,
 )
+from ..file_util import owner_rw_opener
 from ..network import (
     ACCEPT_TYPE_APPLICATION_SNOWFLAKE,
     CONTENT_TYPE_APPLICATION_JSON,

Source: GitHub Commit Fix

The cache implementation was also updated to include additional security controls:

python
         file_path: str | dict[str, str],
         entry_lifetime: int = constants.DAY_IN_SECONDS,
         file_timeout: int = 0,
+        load_if_file_exists: bool = True,
     ) -> None:
         """Inits an SFDictFileCache with path, lifetime.

Source: GitHub Commit Fix

Detection Methods for CVE-2025-24794

Indicators of Compromise

  • Unexpected modifications to OCSP cache files in the Snowflake Connector cache directory
  • Unusual process spawning from Python applications using the Snowflake Connector
  • File integrity changes to cache files with serialized Python objects
  • Anomalous file access patterns targeting the connector's cache locations

Detection Strategies

  • Monitor file system integrity for modifications to Snowflake Connector cache directories
  • Implement application whitelisting to detect unauthorized code execution from Python processes
  • Use endpoint detection to identify pickle deserialization attacks and related exploitation patterns
  • Audit installed Python package versions to identify vulnerable Snowflake Connector installations

Monitoring Recommendations

  • Enable file integrity monitoring on directories containing OCSP cache files
  • Monitor for suspicious process creation chains originating from Python applications
  • Track file permission changes on cache directories that may indicate preparation for exploitation
  • Review application logs for unexpected errors during OCSP cache loading operations

How to Mitigate CVE-2025-24794

Immediate Actions Required

  • Upgrade the Snowflake Connector for Python to version 3.13.1 or later immediately
  • Audit systems for any installations using vulnerable versions (2.7.12 through 3.13.0)
  • Review file permissions on OCSP cache directories to restrict write access
  • Monitor for any suspicious activity related to pickle deserialization attempts

Patch Information

Snowflake has released version 3.13.1 of the Snowflake Connector for Python to address this vulnerability. The fix implements secure file handling through the owner_rw_opener function and adds additional controls for cache file loading. Organizations should upgrade all instances of the connector to the patched version. Detailed information about the fix is available in the GitHub Security Advisory.

Workarounds

  • Restrict file system permissions on OCSP cache directories to prevent unauthorized write access
  • Run applications using the Snowflake Connector with minimal required privileges
  • Implement mandatory access controls (SELinux, AppArmor) to limit cache file modifications
  • Consider disabling OCSP caching temporarily if upgrading is not immediately possible
bash
# Upgrade Snowflake Connector for Python to patched version
pip install --upgrade snowflake-connector-python>=3.13.1

# Verify installed version
pip show snowflake-connector-python | grep Version

# Restrict cache directory permissions (example)
chmod 700 ~/.cache/snowflake/

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechSnowflake

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Vendor Resources
  • GitHub Commit Fix

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-6442: Snowflake Cortex Code CLI RCE Vulnerability

  • CVE-2026-3293: Snowflake JDBC DOS Vulnerability

  • CVE-2025-24790: Snowflake JDBC Information Disclosure

  • CVE-2025-24793: Snowflake Connector Python SQLi Flaw
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