LOW 3.6 PyPI

filelock: Writable strict sentinel can admit a soft lock beside its holder

GHSA-q5j8-xrw5-8mhf · CVE-2026-144391

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

On POSIX, a new StrictSoftFileLock sentinel can inherit group or other write permission. An account with that access can change the sentinel so that a SoftFileLock client enters the protected section while the strict lock remains held. This affects applications sharing a path between strict and legacy soft locks.

Affected version and mitigation

The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.

Filelock now removes group and other write permission when creating strict sentinels and claims. Existing files retain their permissions. Use a private lock directory. If another account had write access to an existing sentinel, stop all clients and replace the sentinel before reusing the path. Fix in PR #985.

Credits

Reported by the filelock scanner: ANT-2026-IHP04UFY.

Ready to move

Start Securing

Free, no credit card | First findings in minutes