AZL-118762: CVE-2026-144381 affecting package python-filelock 3.20.3-4
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
python-filelockto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
What conditions are required for exploitation?
The affected application must use StrictSoftFileLock in a group-writable directory that does not have the sticky bit set. An unrelated directory owned by the locking account must be present such that it can be mistaken for the lock coordination directory.
Who could be impacted?
Other users who rely on the unrelated directory may lose access or have their access disrupted after StrictSoftFileLock changes its permissions and creates a claims directory within it. The issue is relevant where multiple users can write to the same non-sticky directory.
What can be done if upgrading is not immediately possible?
Avoid using StrictSoftFileLock in group-writable directories without the sticky bit. Restrict write access to the directory or set the sticky bit where that configuration is appropriate.
How can I determine whether my deployment is affected?
Check whether the application uses StrictSoftFileLock and whether its lock location is group-writable without the sticky bit. The issue affects versions before 4.3.0; version 4.3.0 fixes it.