[ CVE-2026-112907 · Published 5 Nov 2026 ]
filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break
[ Why it matters ]Priority signals
- Public proof-of-concept exploit exists (CISA SSVC)
[ Description ]Official description
filelock is a platform-independent file lock for Python. From 3.22.0 until 4.2.1, soft lock classes on Windows read an existing marker with _read_lock_file and remove a stale marker through break_lock_file using pathname operations that wait for an oplock break. Another local account with read access to an unheld marker can keep a Level 1 or batch oplock unanswered, causing SoftFileLock.acquire and related async or fallback locks to wait beyond timeout, blocking=False, and cancel_check. A stale marker under the oplock cannot be broken, but mutual exclusion remains intact and no file other than the marker is accessed. This issue is fixed in version 4.2.1.
[ Fixes ]How to fix it
- filelock 4.2.1Fixed version · GitHub Advisories · pip package filelock: upgrade to 4.2.1 or later (affected >= 3.22.0, <= 4.2.0)
Fixed versions
- tox-dev filelock: upgrade to 4.2.1 or laterEarlier versions are listed as affected
From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.
Vendor advisories and patches
- Vendor advisorygithub.com
- Patchgithub.com
- Patchgithub.com
- Release notesgithub.com
[ Packages ]Affected open-source packages
- filelock pipAffected >= 3.22.0, <= 4.2.0 · fixed in 4.2.1 · GHSA-567q-5qvw-pf92