Snowflake Connector for Python
Workload identity attestation generated before login host validation in Snowflake drivers
In affected Snowflake drivers, WORKLOAD_IDENTITY authentication requests a cloud workload-identity token and attaches it to the login request without verifying that the configured host is a Snowflake endpoint. An attacker who can modify the connection configuration can cause the driver to mint a fresh attestation and send it to a host they control. The captured token can be replayed to Snowflake for its remaining lifetime in accounts where that workload identity is already registered. On Azure, the token audience is also taken from connection configuration. Combined with an attacker-controlled host, the driver can request a Managed Identity access token scoped to a non-Snowflake Azure resource and deliver it to the attacker. That path is the only case in which impact extends beyond Snowflake; it is bounded by the token lifetime and the managed identity’s permissions. Successful exploitation requires WORKLOAD_IDENTITY authentication on a workload that already has an ambient cloud identity. Patched driver versions restrict this authenticator to recognized Snowflake hosts. Users must manually upgrade.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.14.1, < 4.7.3
Fixed in 4.7.3
- >= 1.15.0, <= 1.19.1
- >= 2.0.0, < 2.2.0
Fixed in 2.2.0
- >= 3.24.0, < 4.3.4
Fixed in 4.3.4
- >= 3.24.0, < 4.3.4
Fixed in 4.3.4
- >= 3.24.0, < 4.3.4
Fixed in 4.3.4
- >= 2.1.1, < 3.3.0
Fixed in 3.3.0
- >= 4.7.0, < 6.1.0
Fixed in 6.1.0
- >= 3.9.0, < 3.20.0
Fixed in 3.20.0
- >= 3.6.0, < 4.2.0
Fixed in 4.2.0
- >= 2.2.0, < 2.10.0
Fixed in 2.10.0
Mitigation
Upgrade Snowflake Connector for Python to 4.7.3 or later.
Upgrade Snowflake Go Driver to 2.2.0 or later.
Upgrade Snowflake JDBC Driver to 4.3.4 or later.
Upgrade Snowflake JDBC Driver (FIPS) to 4.3.4 or later.
Upgrade Snowflake JDBC Driver (Thin) to 4.3.4 or later.
Upgrade Snowflake Node.js Driver to 3.3.0 or later.
Upgrade Snowflake Connector for .NET to 6.1.0 or later.
Upgrade Snowflake ODBC Driver to 3.20.0 or later.
Upgrade Snowflake PHP PDO Driver to 4.2.0 or later.
Upgrade Snowflake Libsnowflakeclient to 2.10.0 or later.
References
- Release notes github.com/snowflakedb/snowflake-connector-pyt…
- Release notes github.com/snowflakedb/libsnowflakeclient/rele…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.