LOW 3.6 PyPI

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).

Ready to move

Start Securing

Free, no credit card | First findings in minutes