LOW 2.5 PyPI

filelock: Mixed strict and soft locks can overlap after foreign sentinel removal

GHSA-6w8w-m5rc-xhvp · CVE-2026-144403

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 StrictSoftFileLock holder and a soft-lock client using the same path could both enter their critical sections if another account owned the sentinel in a shared sticky directory. This compromises mutual exclusion during a mixed-client migration. The report established overlapping holds.

Affected versions and mitigation

Confirmed affected: = 4.2.12. Upgrade to 4.3.0.

Strict acquisition now refuses a sentinel owned by an untrusted account. Use a directory writable only by the participating account, or use strict clients consistently. Where a shared sticky directory is required, provision the sentinel under the locking account or directory owner before adding clients. Fix in PR #992

Credits

OSS Scanner: ANT-2026-DYZMWIDJ (mixed strict/soft variant).

Ready to move

Start Securing

Free, no credit card | First findings in minutes