filelock: SoftFileLock recovery can admit two holders through a foreign-owned record
GHSA-69rv-9gxw-r2jh · CVE-2026-144351
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
During stale-marker recovery, SoftFileLock can admit two holders if another account can create entries in a shared sticky lock directory. This requires a POSIX filesystem that supports atomic name exchange. An affected caller can enter a critical section while its peer still holds the lock.
Affected versions and fix
Versions 4.2.1 through 4.2.12 are affected. Upgrade to filelock 4.3.0 or later. Recovery keeps foreign-owned records away from the public lock path. PR #975
Workaround
Keep the lock in a directory writable only by trusted participants.
Credits
Reported by OSS Scanner (ANT-2026-5VU02NND).
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-69rv-9gxw-r2jh
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144351
- WEB https://github.com/tox-dev/filelock/pull/975
- WEB https://github.com/tox-dev/filelock/commit/dc52a59fe437d6470e24127759af30a0952bab6a
- 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