GHSA-qg3h-xpfc-449fLowCVSS 3.3

filelock: Crafted lock database delays free ReadWriteLock acquisition

Published
December 4, 2026
Last Modified
December 4, 2026

🔗 CVE IDs covered (1)

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

🎯 Affected products1

  • pip/filelock:< 4.3.0

🔗 References (6)