filelock: SoftReadWriteLock admits overlapping writers through a moved writable treeGHSA-jw9g-h6rh-jp8v
LOWFix: tox-dev/filelock#988GHSA-jw9g-h6rh-jp8v 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.
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-jw9g-h6rh-jp8v.
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, SoftReadWriteLock can accept a protocol directory whose owner it trusts but whose permissions allow another account to write. In a shared sticky lock location, an account with control over such a directory can cause two processes to hold write locks concurrently without a compromise notification.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.
Filelock now checks the ownership and permissions of every protocol directory against the sticky lock parent and rejects unsafe trees. Use a private lock directory. If an unsafe tree already exists, stop all clients before removing it and letting filelock recreate it. Fix in PR #988.
Credits
OSS Scanner: ANT-2026-UHV8G0TA.
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-jw9g-h6rh-jp8v 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.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This flaw is evaluated with Low severity for Red Hat because exploitation requires local access alongside specific, loose directory permissions in shared sticky locations. Under these rare conditions, a local user controlling a permissive directory can cause concurrent write lock acquisition within applications using…
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.Source: Red Hat security advisory for GHSA-jw9g-h6rh-jp8v (CC BY 4.0)
Frequently Asked Questions
Is GHSA-jw9g-h6rh-jp8v in your dependencies?
Find it across PyPI, including transitive dependencies.