Skip to main content
Menu
Advisories

ReadWriteLock write holds overlap after WAL header race

GHSA-VGGP-MRGC-7G8JPublished Updated GitHub

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

Affected versions

References

GitHub · tox-dev/filelock