filelock: ReadWriteLock can delete a private file from a leftover SQLite journal
GHSA-hjx8-83j4-9x3q · CVE-2026-144353
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Impact
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.
Affected versions and fix
The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. When SQLite side files are present, the lock opens the database through a private hard link. PR #976
Workaround
Before upgrading, use a fresh private lock directory and database. Coordinate the move with all participants while no lock is held.
Credits
Reported by OSS Scanner (ANT-2026-J39GB53S).
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-hjx8-83j4-9x3q
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144353
- WEB https://github.com/tox-dev/filelock/pull/976
- WEB https://github.com/tox-dev/filelock/commit/4c4010fc87a432a903c2ea8a2766d9b6f4a66000
- PACKAGE https://github.com/tox-dev/filelock
- WEB https://github.com/tox-dev/filelock/releases/tag/4.3.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes