filelock: Mixed strict and soft locks can overlap after foreign sentinel removalGHSA-6w8w-m5rc-xhvp
LOWFix: tox-dev/filelock#992GHSA-6w8w-m5rc-xhvp is a low-severity (CVSS 2.5) CWE-283 vulnerability in filelock. A fix is available for filelock — see the affected versions and patch details below.
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 POSIX, a StrictSoftFileLock holder and a soft-lock client using the same path could both enter their critical sections if another account owned the sentinel in a shared sticky directory. This compromises mutual exclusion during a mixed-client migration. The report established overlapping holds.
Affected versions and mitigation
Confirmed affected: = 4.2.12. Upgrade to 4.3.0.
Strict acquisition now refuses a sentinel owned by an untrusted account. Use a directory writable only by the participating account, or use strict clients consistently. Where a shared sticky directory is required, provision the sentinel under the locking account or directory owner before adding clients. Fix in PR #992
Credits
OSS Scanner: ANT-2026-DYZMWIDJ (mixed strict/soft variant).
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-6w8w-m5rc-xhvp 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-6w8w-m5rc-xhvp in your dependencies?
Find it across PyPI, including transitive dependencies.