Skip to main content
Menu
Advisories

Read-only local account can stall strict lock acquisition on Windows

GHSA-JCQR-C9R9-VGJHPublished Updated GitHub

Description

Impact

On Windows, a local account with read access to a shared strict-lock claims directory can delay a later StrictSoftFileLock acquisition beyond its timeout. This requires an aged private record left by an interrupted acquisition. The observed effect was a delayed acquisition.

Affected versions and mitigation

Confirmed affected: = 4.2.12. Upgrade to 4.3.0.

Windows acquisitions now validate private records and leave them in place. Restrict read access through the directory and inherited file ACLs. Repeated interruptions can accumulate records and slow scans. Stop all users of the lock before manually cleaning up stale private records. Fix in PR #1045

Credits

Found during maintainer review of PR #989: REVIEW-989-private-reclaim.

Affected versions

References

GitHub · tox-dev/filelock