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.
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
Keep the lock in a directory writable only by trusted participants.
Reported by OSS Scanner (ANT-2026-5VU02NND).
{
"cwe_ids": [
"CWE-367"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-04T22:42:51Z",
"nvd_published_at": "2026-12-03T19:17:32Z",
"severity": "LOW"
}