Improper Locking 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-23628782
  • published4 Dec 2026
  • disclosed3 Dec 2026
  • creditUnknown

Introduced: 3 Dec 2026

NewCVE-2026-144384  (opens in a new tab)
CWE-667  (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 Improper Locking via the soft lock liveness check in _identity.py when locking processes share a /proc mount from a foreign PID namespace. The numeric PID recorded by a lock holder can collide with an unrelated process visible through that mismatched procfs, causing the soft lock to treat a live holder as stale. This allows two concurrent holders to enter the protected section at the same time, breaking mutual exclusion.

Note: This is only exploitable on Linux when locking processes operate across different PID namespaces that share a single /proc mount (for example, after unshare --pid without --mount-proc, or after a partial setns into only one of the PID and mount namespaces).

CVSS Base Scores

version 4.0
version 3.1