VAITP Dataset

← Back to the dataset

CVE-2026-19594

Snowflake.core privesc via path traversal and parameter pollution.

  • CVSS 8.1
  • 22
  • Input Validation and Sanitization
  • Remote

Insufficient input sanitization in Snowflake Python API (`snowflake.core`) versions prior to 1.13.0 allowed confused-deputy privilege escalation through two related weaknesses: path traversal (CWE-22) via unencoded `..` identifier path segments, and HTTP parameter pollution (CWE-141) via unencoded `&`/`#`/`=` characters in query string values. An attacker with access to a downstream application built on snowflake.core could exploit the path traversal by supplying `..` as an object name, causing `snowflake.core` to issue REST requests against a parent resource or exploit the parameter pollution by injecting `&`/`#`/`=` into a free-form name field to override constraints on swap, clone, or rename operations — all executed under the application's privileged session. Successful exploitation requires the attacker to control an identifier or object-name string in an application built on snowflake.core that passes it to `snowflake.core` under a higher-privileged Snowflake session (e.g., an EXECUTE AS OWNER stored procedure, Streamlit app, or Native App). The fix is available in Snowflake Python API version 1.13.0, which also addresses several additional security findings. Users must manually upgrade.

CWE
22
CVSS base score
8.1
Published
2026-08-12
OWASP
A01 Broken Access Control
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Input Validation and Sanitization
Subcategory
Path Traversal
Accessibility scope
Remote
Impact
Privilege Escalation
Affected component
Snowflake Py
Fixed by upgrading
Yes

Solution

Upgrade the Snowflake Python API to version 1.13.0 or later.

Vulnerable code sample

import requests
from typing import Any, Dict


class _RestClient:
    def __init__(self, session: requests.Session, options: Dict[str, Any]):
        self._session = session
        self._base_url = options.get("url", "")

    def drop_schema_object(
        self,
        schema_name: str,
        object_type_plural: str,
        object_name: str,
    ) -> None:
        # VULNERABLE: unsanitized object_name lets ".." traverse to the parent REST resource
        endpoint = f"/schemas/{schema_name}/{object_type_plural}/{object_name}"
        self._session.delete(self._base_url + endpoint)

Patched code sample

import requests
from typing import Any, Dict
from urllib.parse import quote


class _RestClient:
    def __init__(self, session: requests.Session, options: Dict[str, Any]):
        self._session = session
        self._base_url = options.get("url", "")

    def drop_schema_object(
        self,
        schema_name: str,
        object_type_plural: str,
        object_name: str,
    ) -> None:
        # FIX: reject traversal segments and percent-encode the identifier before use in the path
        if object_name in (".", "..") or "/" in object_name or "\\" in object_name:
            raise ValueError("invalid object name")
        safe_object_name = quote(object_name, safe="")
        endpoint = f"/schemas/{schema_name}/{object_type_plural}/{safe_object_name}"
        self._session.delete(self._base_url + endpoint)

Payload

new_object_name&overwrite=true

Cite this entry

@misc{vaitp:cve202619594,
  title        = {{Snowflake.core privesc via path traversal and parameter pollution.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-19594},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-19594/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::