CVE-2026-144391: filelock: Writable strict sentinel can admit a soft lock beside its holder
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, a new StrictSoftFileLock sentinel can inherit group or other write permission. An account with that access can change the sentinel so that a SoftFileLock client enters the protected section while the strict lock remains held. This affects applications sharing a path between strict and legacy soft locks. This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects POSIX deployments using filelock versions before 4.3.0 where an application shares a lock path between StrictSoftFileLock and legacy SoftFileLock clients. Exploitation also requires another account to have group or other write access to the strict lock sentinel.
What access does an attacker need?
An attacker needs local access as an account that can modify the StrictSoftFileLock sentinel. They can then alter the sentinel so a SoftFileLock client enters the protected section while the strict lock is still held.
How can the issue be remediated?
Upgrade filelock to version 4.3.0. If upgrading cannot happen immediately, avoid sharing lock paths between strict and legacy soft lock clients and ensure strict lock sentinel files are not writable by group or other accounts.