LOW 3.6 PyPI

filelock: Strict soft lock can chmod unrelated directory

GHSA-gqj6-5294-r46r · CVE-2026-144381

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

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

Ready to move

Start Securing

Free, no credit card | First findings in minutes