dvc · filelock: SoftFileLock stale-break restore follows a swapped-in symbolic link and hard-links a file of the user
Affects dvcSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.67.1_18 when convenient.
Data as of 4 Dec 2026, 20:17 UTC
- Patch
- Available – fixed in 3.67.1_18, 4.2.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 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 4 Dec 2026.
What to do
Upgrade dvc to 3.67.1_18; filelock to 4.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewdvcpkg:brew/dvcOther threats | Affected
| Fixed in
|
PyPIfilelockpkg:pypi/filelockOther 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
Upgrade filelock to version 4.2.1 or later where the restore branch properly guards against symbolic links swapped in after lstat. Alternatively, ensure that lock directories are not writable by unprivileged users without the sticky bit set (e.g., use 1777 permissions for shared directories). On Linux, enabling fs.protected_symlinks and fs.protected_hardlinks can help prevent exploitation. No additional action is required if these conditions are met or the patch is applied.
Description
A vulnerability in filelock versions 4.1.0 through 4.2.0 allows a local unprivileged user to create a hard link to another user's file by exploiting a race condition in the SoftFileLock stale-break restore process. This occurs when the lock directory is writable by the attacker and lacks the sticky bit, enabling the attacker to swap in a symbolic link that the lock restoration process follows, resulting in a hard link to the victim's file. The attacker can observe file metadata and cause integrity damage such as truncation of the victim's file. The issue requires specific conditions including a shared writable directory without sticky bit protection and CPython 3.12 or later on Linux or macOS. The vulnerability has a CVSS 3.1 score of 5.3 (Medium).
References
- github.com/tox-dev/filelock/security/advisories/GHSA-crv4-6mhj-j5jh (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-112914 (opens in a new tab)
- github.com/tox-dev/filelock/pull/843 (opens in a new tab)
- github.com/tox-dev/filelock/commit/740ff666b62a88496c8d7394e4e6230605e4d62b (opens in a new tab)
- github.com/tox-dev/filelock (opens in a new tab)
- github.com/tox-dev/filelock/releases/tag/4.2.1 (opens in a new tab)