Skip to main content
Menu
Advisories

Readable database oplock delays async cancellation on Windows

GHSA-X9CQ-QQFM-8972Published Updated GitHub

Description

Impact

On Windows, another local account with read access to a SQLite lock database can delay cancellation of an AsyncReadWriteLock acquisition. The task and application shutdown can wait past the task deadline, up to the lock's own timeout. Older databases and deliberately shared databases may grant the necessary access.

Affected versions and mitigation

Confirmed affected: = 4.2.12. Upgrade to 4.3.0.

An interrupted acquire can now stop its worker between attempts. Lock construction still has its own five-second database-open budget. Restrict read access to the service account and set a finite lock timeout appropriate for shutdown. Fix in PR #1059

Credits

Scan filelock-20261116-009; finding ANT-2026-YNJD4Y2W.

Affected versions

References

GitHub · tox-dev/filelock