Read the docs
TI-2026-85684 Aliases CVE-2026-112938

Symlink race in filelock StrictSoftFileLock writes claims elsewhere

Priority LOW 25CWE-363Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
Low · Low · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

filelock for Python, from 3.30.0 before 4.2.1, follows symbolic links in StrictSoftFileLock and AsyncStrictSoftFileLock on POSIX platforms. A race between directory validation and use lets a local account that can rename the coordination name swap in a symbolic link and create claim files in another writable directory (CWE-363). The claims property and force_break also follow a resting symbolic link, and a blind force_break can let two processes into another strict lock's critical section.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Description from the CNA

filelock is a platform-independent file lock for Python. From 3.30.0 until 4.2.1, On POSIX platforms, StrictSoftFileLock and AsyncStrictSoftFileLock validate the coordination directory in _ensure_protocol_directory but later reach the claims directory through _open_directory by pathname, allowing a local account that can rename the coordination name to swap in a symbolic link between check and use during acquisition. That race can create and leave claim files in another writable directory or strand claims in a different strict lock so the second lock times out. Separately, the claims property and force_break follow a resting symbolic link without a race when the lock user inspects or recovers the lock. Claims inspection discloses a file name to the other account only if the resulting exception text or claim_name reaches that account through a shared log, CI output, or error report. A blind force_break recovery that removes live claims from another strict lock can allow two processes into that lock's critical section; this path reaches other strict locks, not arbitrary files. This issue is fixed in version 4.2.1.

Why it matters now

EPSS 0.00107 1st percentileScored 2026-11-07
Fix Fixed filelock (tox-dev): 4.2.1filelock (PyPI): 4.2.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
tox-devfilelock3.30.0 to before 4.2.14.2.1Patch availableCNA
—filelock (PyPI)3.30.0 to before 4.2.14.2.1Patch availableGHSA-m462-7rxw-wvpg
  • filelock Vendortox-dev Affected 3.30.0 to before 4.2.1 Fixed in 4.2.1 Patch available CNA
  • filelock (PyPI) Vendor— Affected 3.30.0 to before 4.2.1 Fixed in 4.2.1 Patch available GHSA-m462-7rxw-wvpg

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:tox-dev:filelock:*:*:*:*:*:*:*:*——tox-dev
  • cpe:2.3:a:tox-dev:filelock:*:*:*:*:*:*:*:* Versions — — ·tox-dev

Remediation

Upgrade filelock to version 4.2.1, the fixed version listed for both the tox-dev and PyPI entries. Red Hat lists one product as not affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

  • Fix · CNA filelock (tox-dev) Fixed in 4.2.1
  • Fix · GHSA-m462-7rxw-wvpg filelock (PyPI) Fixed in 4.2.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-11-05 Threatist record created from CVE-2026-112938
  2. 2026-11-06 Affected versions changed · Red Hat
  3. 2026-11-06 CVSS score added · Red Hat
  4. 2026-11-07 Priority changed: MEDIUM → LOW

References

  • TI-2026-76862 Symlink race in filelock ReadWriteLock lets attackers overwrite files CVSS 3.1HIGH 7.1
  • TI-2026-76853 filelock soft locks adopt directories created by other local users CVSS 3.1MEDIUM 6.3
  • TI-2026-76859 Symlink following in filelock ReadWriteLock redirects SQLite database CVSS 3.1MEDIUM 6.1
  • TI-2026-76857 Unsafe holder record refresh in filelock SoftReadWriteLock CVSS 3.1MEDIUM 6.1
  • TI-2026-76852 filelock UnixFileLock truncates files placed on the lock path CVSS 3.1MEDIUM 6.1
  • TI-2026-76856 Crafted lock database makes filelock ReadWriteLock acquisitions hang CVSS 3.1MEDIUM 5.5
See all 19 →

Sources