AZL-118759: CVE-2026-144353 affecting package python-filelock 3.20.3-4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, a ReadWriteLock database can retain an untrusted SQLite journal after its directory changes from shared to private. Opening the database can delete an unrelated file that the locking account has permission to read and remove. Changing directory permissions does not remove existing journals. 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?
A ReadWriteLock database must retain an untrusted SQLite journal after its directory changes from shared to private. A subsequent opening of that database can delete an unrelated file if the locking account has permission to read and remove that file.
Are systems affected simply by changing a directory from shared to private?
Potentially, if existing SQLite journals remain in the directory. Changing directory permissions does not remove existing journals, so retained journals are the relevant exposure condition.
How can I reduce risk if I cannot update immediately?
Remove existing untrusted SQLite journals when changing a database directory from shared to private, and avoid opening affected ReadWriteLock databases until those journals have been addressed. Ensure the locking account has only the minimum file read and removal permissions needed.
What version fixes this issue?
The issue is fixed in version 4.3.0.