CVE-2026-13749: Snowflake CLI Code Injection Vulnerability in Snowpark Annotation Processor
A vulnerability in Snowflake CLI versions before 3.19 allows attackers to run arbitrary code on a developer's machine during application bundling or deployment. An attacker can craft malicious project files that, when processed by the CLI, execute code with the privileges of the user running the tool. The attack requires the victim to run the bundling or deployment workflow against attacker-controlled content, making it effective in supply-chain or social-engineering scenarios where developers are tricked into processing untrusted project materials.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-94
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-29 / 2026-06-30
NVD description (verbatim)
Improper neutralization in the Snowpark annotation processor callback template in Snowflake CLI versions prior to 3.19 allowed arbitrary code execution during application bundling or deployment. An attacker could exploit this by supplying crafted project content that is interpolated into generated Python code, causing Snowflake CLI to execute attacker-controlled code in the local context of the user running the CLI. Successful exploitation requires the victim to run the relevant bundling or deployment workflow against attacker-controlled project content, and any resulting code runs with the privileges of that local execution context. The fix is available in Snowflake CLI version 3.19, and users must manually upgrade.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-13749 is a code injection vulnerability in the Snowpark annotation processor callback template used by Snowflake CLI. The vulnerability stems from improper neutralization of untrusted input during Python code generation. When a user runs the CLI's bundling or deployment workflow, attacker-supplied project content is interpolated directly into generated Python code without adequate sanitization. This results in arbitrary code execution in the local execution context with the privileges of the user invoking the CLI. The vulnerability affects all versions prior to 3.19, where the fix has been implemented.
Business impact
This vulnerability poses a significant risk to development teams and DevOps personnel who use Snowflake CLI. Successful exploitation can lead to unauthorized access to local development environments, theft of credentials or source code, lateral movement into connected systems, and compromise of the CI/CD pipeline if the CLI is executed in automated workflows. Organizations deploying Snowflake applications should prioritize upgrading to mitigate the risk of developer machine compromise and potential supply-chain contamination.
Affected systems
Snowflake CLI versions prior to 3.19 are affected. The vulnerability is triggered specifically during application bundling or deployment operations. Any developer or automated system using an affected version to process project content is at risk. Users should verify their current CLI version and plan immediate upgrades to version 3.19 or later.
Exploitability
Exploitation requires user interaction—the victim must run the bundling or deployment workflow against attacker-controlled project content. The attack vector is network-accessible (an attacker can host or distribute malicious projects), there are no special privileges required to trigger it, and complexity is low. The CVSS 3.1 score of 8.8 (HIGH) reflects the high impact (confidentiality, integrity, and availability compromised) and the relative ease of exploitation once the victim is socially engineered or compromised to process untrusted project files. The vulnerability has not yet been added to the CISA Known Exploited Vulnerabilities catalog.
Remediation
Organizations must upgrade Snowflake CLI to version 3.19 or later. Manual upgrade is required; no automatic patching is available. Teams should verify the upgrade was successful and communicate the requirement to all developers and automation systems using the CLI. Consider implementing process controls to audit and restrict bundling/deployment operations to trusted, internally-sourced projects only.
Patch guidance
Upgrade Snowflake CLI to version 3.19 or later. Visit the Snowflake CLI release page or use your package manager to pull the latest version. After upgrading, verify the version using `snowflake --version` or the equivalent command for your installation method. If CLI is used in CI/CD pipelines or automated deployments, ensure all agents and containers are updated to the patched version before resuming production workflows.
Detection guidance
Monitor for unusual process execution or code generation activity when Snowflake CLI runs, particularly in bundling or deployment phases. Review CLI logs and project file history for unexpected changes or externally sourced content. In CI/CD environments, log all CLI invocations and their source projects. Consider scanning project repositories and dependency sources for suspicious modifications. Behavioral detection may flag unexpected child processes spawned during CLI execution, especially if they attempt to access credentials, environment variables, or network resources.
Why prioritize this
This vulnerability merits immediate attention due to its HIGH severity, the ease of exploitation once a victim processes malicious content, and the potential for widespread impact on development infrastructure and supply chains. The attack surface spans any developer or automation system using the CLI, making it a credible concern for organizations with significant Snowflake deployments. The requirement for user interaction is the primary limiting factor, but social engineering and supply-chain attacks can effectively overcome this hurdle.
Risk score, explained
The CVSS 3.1 score of 8.8 reflects high impact across confidentiality, integrity, and availability (all marked as High), combined with low attack complexity and no privilege requirements. The user interaction requirement prevents a perfect score, but the network attack vector and lack of scope change keep the overall severity in the HIGH range. Organizations with developer-facing threat models and supply-chain concerns should treat this as a critical upgrade priority.
Frequently asked questions
Can this vulnerability be exploited remotely without the user's knowledge?
No. Exploitation requires the victim to explicitly run the bundling or deployment workflow against attacker-controlled project content. However, an attacker can social engineer a developer into doing so, or compromise a supply chain to inject malicious files into project repositories that developers pull automatically.
Does upgrading Snowflake CLI automatically patch this vulnerability?
No. Snowflake CLI does not auto-update. Users and administrators must manually upgrade to version 3.19 or later. Verify your current version and plan the upgrade promptly, particularly for CI/CD systems where the CLI is integrated into automated workflows.
What should we do if we can't upgrade immediately?
Until you upgrade, restrict bundling and deployment operations to internally developed and audited projects. Disable or isolate CLI access in development environments if possible. Implement process monitoring to detect unusual child process spawning during CLI execution. Communicate the upgrade timeline to all users and enforce it through automation controls where feasible.
Is there a workaround that avoids the vulnerability without upgrading?
The only reliable mitigation is upgrading to version 3.19. Workarounds like running the CLI in a sandboxed environment or container may reduce blast radius if exploitation occurs, but they do not eliminate the underlying vulnerability. Upgrade should be prioritized over workarounds.
This analysis is provided for informational purposes and does not constitute professional security advice. Organizations should conduct their own risk assessments and coordinate patches with their Snowflake vendors and internal security teams. CVSS scores and vulnerability details reflect the source data as of the publication date; verify against official Snowflake advisories and the NVD for the latest information. No exploit code or weaponized proof-of-concept is provided or endorsed. Always test patches in non-production environments before deployment. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-10904HIGHChrome V8 Sandbox Escape Remote Code Execution
- CVE-2026-10928HIGHScript Injection in Google Chrome Headless – CVSS 8.8 High Severity
- CVE-2026-11231HIGHChrome Safe Browsing Code Execution on macOS – Patch Now
- CVE-2026-11688HIGHChrome SVG Sandbox Escape RCE Vulnerability – Patch Urgently
- CVE-2026-12242HIGHAdRotate Banner Manager PHP Code Injection Vulnerability
- CVE-2026-12252HIGHNLTK Stanford JAR Code Execution Flaw
- CVE-2026-13500HIGHANTLR4 Code Injection Vulnerability (Grammar Action Block Handler)
- CVE-2026-14383HIGHChrome V8 Sandbox Escape – CVSS 8.8 Critical Vulnerability