filelock: SoftReadWriteLock timeout overrun on growing generation logGHSA-j77v-qg7h-37qr
LOWFix: tox-dev/filelock#981GHSA-j77v-qg7h-37qr is a low-severity (CVSS 3.3) CWE-835 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-j77v-qg7h-37qr.
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
An account with write access to a SoftReadWriteLock generation directory can keep an acquisition scanning beyond its timeout and consume CPU. The overrun was confirmed during write acquisition.
Affected versions and fix
The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. Each generation scan now has a work limit so acquisition can check its deadline between scans. A scan already in progress can still delay the timeout. PR #981
Workaround
Restrict write access to the lock's generation directory and its parent to trusted participants.
Credits
Reported by OSS Scanner (ANT-2026-9RZ0TW4O).
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-j77v-qg7h-37qr 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 as Low severity because exploitation requires local system access with write permissions to the lock generation directory, limiting the risk to localized CPU consumption rather than system-wide denial of service or code execution. In typical Red Hat Enterprise Linux and containerized…
To mitigate this issue, restrict write permissions on the directory used for lock generation so that only authorized service accounts or processes can access it. Set restrictive permissions on the designated lock directory: ``` chmod 700 /path/to/lock_directory ``` Caveats: Restricting access to the lock directory prevents unauthorized local accounts from manipulating generation files, but may disrupt legitimate multi-user applications if untrusted processes require shared lock access. Restart any running applications using the affected lock directory after modifying permissions.Source: Red Hat security advisory for GHSA-j77v-qg7h-37qr (CC BY 4.0)
Frequently Asked Questions
Is GHSA-j77v-qg7h-37qr in your dependencies?
Find it across PyPI, including transitive dependencies.