Unverified Ownership Affecting filelock package, versions [4.2.12,4.3.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FILELOCK-23628773
  • published4 Dec 2026
  • disclosed3 Dec 2026
  • creditUnknown

Introduced: 3 Dec 2026

NewCVE-2026-144394  (opens in a new tab)
CWE-283  (opens in a new tab)

How to fix?

Upgrade filelock to version 4.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Unverified Ownership via SoftReadWriteLock in _soft_rw/_storage.py, where the _admit method cached directory inode identities and skipped re-checking ownership on subsequent opens. On Linux, if the protocol directory is removed while a lock instance remains alive, the freed inode number can be reused by a directory planted by another account, causing two processes to simultaneously hold a write lock. An attacker with a separate account able to replace directories in the shared lock location can exploit filesystem inode reuse to bypass the mutual-exclusion guarantee without any notification to the affected processes.

Note: This is only exploitable on Linux when another account can replace directories in the shared lock location and the filesystem reuses a previously trusted inode number (confirmed on ext4).

CVSS Base Scores

version 4.0
version 3.1