filelock: ReadWriteLock write holds overlap after WAL header race
GHSA-vggp-mrgc-7g8j · CVE-2026-144385
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
Two ReadWriteLock callers can both enter write critical sections if another account can modify their shared SQLite lock database. The overlap can occur when the database changes to write-ahead logging (WAL) while acquisition is waiting.
Affected versions and fix
The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. After beginning the transaction, the lock checks SQLite's active journal mode and refuses a WAL transaction. PR #980
Workaround
Restrict write access to the lock database and its directory to trusted participants.
Credits
Reported by OSS Scanner (ANT-2026-HQPO34NX).
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-vggp-mrgc-7g8j
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144385
- WEB https://github.com/tox-dev/filelock/pull/980
- WEB https://github.com/tox-dev/filelock/commit/2ed77b40eda2bc7fbd0e14a5cad175295f4973b6
- 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