AZL-118801: CVE-2026-144395 affecting package python-filelock 3.20.3-4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. 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 issue applies on POSIX when a SQLite-backed ReadWriteLock uses a shared, non-sticky lock directory. A separate account must have rename access to that directory, and the setup must include a victim-owned directory that account could previously read.
Who is realistically exposed?
Systems where different accounts share access to the relevant lock directory are exposed if one account can rename entries there. A cross-account overwrite was confirmed on Linux.
What should be done if the affected package is in use?
Update filelock to version 4.3.0, which fixes the issue. Until updating, avoid using a shared non-sticky lock directory where another account has rename access.
How can I assess whether my deployment is affected?
Check whether the application uses SQLite-backed ReadWriteLock operations on POSIX and identify the lock directory permissions. The risky configuration is a shared, non-sticky directory in which another account can rename files and can read a victim-owned directory involved in the setup.