filelock: SoftFileLock recovery can admit two holders through a live break name
GHSA-gvhc-qmqx-22pq · CVE-2026-144350
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
On POSIX filesystems with atomic name exchange, SoftFileLock can misidentify an active recovery record as abandoned. If another local account can create markers in the shared sticky lock directory, racing recoveries can let two holders enter the same critical section.
Affected versions and fix
Versions 4.2.1 through 4.2.12 are affected. Upgrade to filelock 4.3.0 or later. Recovery leaves a break record in place while the process identified by its name is running. PID reuse can therefore delay cleanup. PR #974
Workaround
Keep the lock in a directory writable only by trusted participants.
Credits
Reported by OSS Scanner (ANT-2026-01PM0HYF).
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-gvhc-qmqx-22pq
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144350
- WEB https://github.com/tox-dev/filelock/pull/974
- WEB https://github.com/tox-dev/filelock/commit/13dae4c0aa28c09681864addc9e0cda322fa1e13
- 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