Snowflakedb snowflake-connector-net
Snowflake Connector for .NET has race condition when checking access to Easy Logging configuration file
snowflake-connector-net is the Snowflake Connector for .NET. Versions starting from 2.1.2 to before 4.4.1, are vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition. When using the Easy Logging feature on Linux and macOS, the Connector reads logging configuration from a user-provided file. On Linux and macOS, the Connector verifies that the configuration file can be written to only by its owner. That check was vulnerable to a TOCTOU race condition and failed to verify that the file owner matches the user running the Connector. This could allow a local attacker with write access to the configuration file or the directory containing it to overwrite the configuration and gain control over logging level and output location. This issue has been patched in version 4.4.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.1.2, < 4.4.1
Fixed in 4.4.1
Mitigation
Upgrade snowflake-connector-net to 4.4.1 or later.
References
- Vendor advisory github.com/snowflakedb/snowflake-connector-net…
- Patch github.com/snowflakedb/snowflake-connector-net…
- Release notes github.com/snowflakedb/snowflake-connector-net…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.