LOW 3.3 PyPI

filelock: Read-only oplock can hold strict lock acquisition past its timeout

GHSA-f37p-fqrx-f498 · CVE-2026-144392

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 Windows, a local account with read access to an idle StrictSoftFileLock sentinel can delay acquisition beyond the requested timeout. A Windows opportunistic lock (oplock) on the sentinel can keep the caller’s thread waiting inside the operating system, including during a nonblocking acquisition.

Affected version and mitigation

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

Filelock now opens the sentinel without waiting for an outstanding oplock break, letting the caller handle contention, cancellation and timeouts. Restrict sentinel read access to participating accounts. This fix covers opening the sentinel during acquisition. Fix in PR #987.

Credits

Reported in the filelock scan as ANT-2026-9GI58YA1.

Ready to move

Start Securing

Free, no credit card | First findings in minutes