LOW 3.6 PyPI

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).

Ready to move

Start Securing

Free, no credit card | First findings in minutes