Skip to main content
CVE-2026-112914VulnerabilityPublished Updated

dvc · filelock: SoftFileLock stale-break restore follows a swapped-in symbolic link and hard-links a file of the user

Affects dvcSource GCVE Database

0
Compare
Authoritative record:CVE-2026-112914· Medium 5.3

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

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewdvcpkg:brew/dvcOther threatsAffected
  • >=3.67.1_17 <3.67.1_18
Fixed in
  • 3.67.1_18
PyPIfilelockpkg:pypi/filelockOther threatsAffected
  • 4.1.0 – 4.2.0
  • >=4.1.0 <4.2.1
4 affected builds
Fixed in
  • 4.2.1

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

Community reviews

Loading reviews…