Skip to main content
CVE-2026-112937VulnerabilityPublished Updated

dvc · filelock: ReadWriteLock on the hard-link route deletes any directory another user renames onto its .filelock-* link

Affects dvcSource GCVE Database

0
Compare
Authoritative record:CVE-2026-112937· Medium 6.1

Not known to be exploited · CVSS 6.1 Medium : upgrade to 3.67.1_18 when convenient.

Data as of 4 Dec 2026, 20:17 UTC

CVSS 3.1 base score
6.1Medium
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:L/PR:L/UI:N/S:U/C:N/I:H/A:L

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

A patch is available in version 3.67.1_18 of the affected product and should be applied to remediate this vulnerability. The vendor advisory confirms the fix is available. Additionally, ensuring that the parent directory of the lock database is not writable by other users or is marked with the sticky bit can prevent exploitation by disallowing unauthorized renames. Systems running Linux with /proc mounted are not affected by this issue. No other specific mitigations are indicated by the vendor advisory.

Description

A vulnerability in the filelock Python library versions 4.1.0 through 4.2.0 allows a local user with write permission on the directory containing the lock database to rename directories and cause the lock user's process to recursively delete unintended directories. This occurs because the ReadWriteLock and AsyncReadWriteLock implementations remove their private .filelock-* directories without verifying that the path still points to the originally created directory. The issue affects macOS since version 4.1.1 and POSIX environments without a usable /proc/self/fd, such as chroots or containers without /proc mounted. The vulnerability has a CVSS 3.1 score of 6.1 (Medium) and results in integrity and partial availability loss but no confidentiality impact. A fix is available in version 3.67.1_18 of the affected product.

References

Community reviews

Loading reviews…