Skip to main content
Menu
Advisories

SoftFileLock recovery can admit two holders through a foreign-owned record

GHSA-69RV-9GXW-R2JHPublished Updated GitHub

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

Affected versions

References

GitHub · tox-dev/filelock