CVE-2026-41490: SQL Injection via Dynamic Partition Keys - Dagster Database I/O Managers

Apr 17, 2026

Details


Description

A SQL injection vulnerability (CWE-89) exists in the Dagster DuckDB, Snowflake, BigQuery, and DeltaLake I/O managers. When loading or storing partitioned assets, these I/O managers construct SQL WHERE clauses by interpolating dynamic partition key values directly into the query string without escaping. A user with the Add Dynamic Partitions permission can add a partition whose key contains a crafted SQL payload, which is then executed under the I/O manager’s database credentials.

Only pipelines using dynamic partitions are affected. Static and time-window partitions are not affected.

Attack Vectors

An attacker who can add dynamic partitions supplies a partition key containing SQL metacharacters. When an asset backed by an affected database I/O manager is materialized or loaded for that partition, the unescaped key is concatenated into the WHERE clause and executed with the I/O manager’s database privileges. This allows reading or modifying database data beyond the attacker’s normal role permissions in deployments where partition-management permissions are granted independently of broader database access.

References