CVE-2026-144353: filelock: ReadWriteLock can delete a private file from a leftover SQLite journal
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 to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.0
Event History
Frequently Asked Questions
Which versions should be remediated?
The issue affects filelock versions prior to 4.3.0. Upgrade to version 4.3.0 or later.
What conditions are required for exploitation?
A ReadWriteLock database directory must have changed from shared to private while retaining an untrusted SQLite journal. When the locking account opens the database, the journal can cause deletion of an unrelated file that account is permitted to read and remove.
Are permission changes alone sufficient mitigation?
No. Changing the directory from shared to private does not remove existing journals, so a journal left behind before the permission change can remain relevant.
What can be done before upgrading?
Review ReadWriteLock database directories that were previously shared and remove leftover untrusted SQLite journals before opening the database. Ensure untrusted users cannot create or retain journal files in directories used by the lock database.