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-23628783
  • published4 Dec 2026
  • disclosed3 Dec 2026
  • creditOSS Scanner

Introduced: 3 Dec 2026

NewCVE-2026-144382  (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 the foreign_owner function in src/filelock/_util.py, where a Linux user namespace can report the same overflow UID for unrelated host accounts. When the namespace shares a sticky lock directory with the host, an attacker can supply a protocol tree owned by a different host account that matches the overflow UID, causing SoftReadWriteLock to accept it as trusted and admit a reader while a writer holds the lock, breaking mutual exclusion guarantees.

Workaround

Use a lock directory with a verified, mapped owner where untrusted accounts cannot supply or replace the protocol tree.

CVSS Base Scores

version 4.0
version 3.1