CVE-2026-144381: filelock: Strict soft lock can chmod unrelated directory
filelock is a platform-independent file lock for Python. Prior to 4.3.0, in a group-writable directory without the sticky bit, StrictSoftFileLock can mistake an unrelated directory owned by the locking account for its coordination directory. It can change that directory's permissions and create a claims directory inside it, disrupting access for other users. This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
filelockto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using StrictSoftFileLock before version 4.3.0 are exposed when it operates in a group-writable directory that does not have the sticky bit set. The issue depends on an unrelated directory owned by the locking account being mistaken for the lock coordination directory.
What access does an attacker need to exploit it?
The vulnerability has local attack vector, high attack complexity, and requires low privileges. Exploitation requires conditions in the shared group-writable, non-sticky directory that cause StrictSoftFileLock to select an unrelated directory owned by the locking account.
What is the impact if exploitation succeeds?
StrictSoftFileLock can change permissions on the unrelated directory and create a claims directory within it. This can disrupt other users' access, affecting integrity and availability without reported confidentiality impact.
What can be done before upgrading?
Avoid using StrictSoftFileLock in group-writable directories without the sticky bit, or ensure its coordination directory cannot be confused with unrelated directories. Upgrade filelock to version 4.3.0 to obtain the fix.