CVE-2026-22701: Snowflake cli · filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
Affects snowflake-cliSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.15.0 when convenient.
Data as of 19 Nov 2026, 19:38 UTC
- Patch
- Available – fixed in 3.15.0
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
Upgrade snowflake-cli to 3.15.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewsnowflake-clipkg:brew/snowflake-cliOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in snowflake-cli version 3.15.0 that adds the O_NOFOLLOW flag to prevent symlink following during lock file creation, effectively mitigating the vulnerability on platforms supporting this flag. Users should upgrade to version 3.15.0 or later. For environments where immediate upgrade is not feasible, users should avoid using SoftFileLock in security-sensitive contexts by switching to UnixFileLock or WindowsFileLock where possible, restrict filesystem permissions on lock directories to prevent untrusted symlink creation (e.g., chmod 700), isolate untrusted code from lock file paths, and implement application-level checks to verify successful lock acquisition before proceeding with critical operations.
Description
CVE-2026-22701 is a Time-of-Check-Time-of-Use (TOCTOU) race condition vulnerability in the SoftFileLock class of the filelock package used by snowflake-cli. An attacker with local filesystem access and permission to create symlinks can exploit a race window between permission checking and file creation to cause lock operations to fail or operate on unintended files. This can lead to silent lock acquisition failures, denial of service, and resource serialization issues. The vulnerability affects versions >=3.4.1 and <3.15.0 of snowflake-cli and has been patched in version 3.15.0 by adding the O_NOFOLLOW flag to prevent symlink following during lock file creation. Users are advised to upgrade to the patched version or apply recommended workarounds if immediate upgrade is not possible.
References
- github.com/tox-dev/filelock/security/advisories/GHSA-qmgc-5h2g-mvrw (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-22701 (opens in a new tab)
- github.com/tox-dev/filelock/commit/255ed068bc85d1ef406e50a135e1459170dd1bf0 (opens in a new tab)
- github.com/tox-dev/filelock/commit/41b42dd2c72aecf7da83dbda5903b8087dddc4d5 (opens in a new tab)
- github.com/tox-dev/filelock (opens in a new tab)