Crafted lock database delays free ReadWriteLock acquisition
Description
Impact
If another local account can create or modify a SQLite lock database, loading its schema can consume CPU past the acquisition timeout even when the lock is free. Both ReadWriteLock and AsyncReadWriteLock load the schema. Tests confirmed a finite timeout overrun.
Affected versions and mitigation
Confirmed affected: = 4.2.12. Upgrade to 4.3.0.
The SQLite backend now applies tighter schema limits and checks progress more often. An existing database above those limits can raise ValueError. Use a dedicated lock database in a directory writable only by trusted accounts. Fix in PR #1035
Credits
OSS Scanner, ANT-2026-DW94VV2H.