Skip to main content
Menu
Advisories

Strict soft lock can chmod unrelated directory

GHSA-GQJ6-5294-R46RPublished Updated GitHub

Description

Impact

In a group-writable directory without the sticky bit, StrictSoftFileLock can mistake an unrelated directory owned by the locking account for its coordination directory. It can change that directory's permissions and create a claims directory inside it, disrupting access for other users.

Affected versions and fix

The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. The lock checks the claims directory and its entries before changing permissions. PR #978

Workaround

Use a trusted parent directory where other accounts cannot rename entries.

Credits

Reported by OSS Scanner (ANT-2026-8ERL4V7J).

Affected versions

References

GitHub · tox-dev/filelock