filelock: SoftReadWriteLock timeout overrun on growing generation log
GHSA-j77v-qg7h-37qr · CVE-2026-144387
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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).
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-j77v-qg7h-37qr
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144387
- WEB https://github.com/tox-dev/filelock/pull/981
- WEB https://github.com/tox-dev/filelock/commit/6f0f71da7a85346c59176371054cfc9718e492e8
- PACKAGE https://github.com/tox-dev/filelock
- WEB https://github.com/tox-dev/filelock/releases/tag/4.3.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes