filelock: Read-handle oplock stalls unrelated async tasks on WindowsGHSA-57mc-wxv7-332q
LOWFix: tox-dev/filelock#1033GHSA-57mc-wxv7-332q is a low-severity (CVSS 2.5) CWE-1322 vulnerability in filelock. A fix is available for filelock — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-57mc-wxv7-332q.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
filelockReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Impact
On Windows, a local account with read access to a native lock file can delay a nonblocking or short-timeout FileLock acquisition. With AsyncFileLock(run_in_executor=False), the delay also blocks unrelated tasks on the event loop. The default executor keeps the loop responsive but an acquisition can still miss its own deadline on the affected release.
Affected versions and mitigation
Confirmed affected: = 4.2.12. Upgrade to 4.3.0.
The acquisition loop now treats an oplock conflict as contention immediately. Nonblocking calls can raise Timeout even if the file becomes available shortly afterward. Restrict lock-file read access to trusted accounts and retain the default async executor. Fix in PR #1033
Credits
Scan filelock-20261116-009; finding ANT-2026-F0PRXOX0.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | filelock | all versions | 4.3.0pip install --upgrade 'filelock==4.3.0' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for filelock, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update filelock to 4.3.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-57mc-wxv7-332q is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-57mc-wxv7-332q in your dependencies?
Find it across PyPI, including transitive dependencies.