LOW 2.5 PyPI

filelock: Windows read-handle oplock holds stale soft-lock recovery past timeout

GHSA-6hxh-7x44-pwfg · CVE-2026-144389

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 a stale soft-lock marker can delay recovery beyond the caller’s acquisition timeout. This affects SoftFileLock, MarkerSoftFileLock and SoftFileLease when another process holds a read-handle opportunistic lock on the stale marker.

Affected version and mitigation

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

Filelock now bounds the wait for the stale-marker rename and treats a canceled rename as contention. A single attempt, including a nonblocking one, can still spend roughly half a second in that rename. Restrict read access to the marker through its parent directory’s ACL. Fix in PR #984.

Credits

Reported by the filelock scanner: ANT-2026-82MUV4ZM.

Ready to move

Start Securing

Free, no credit card | First findings in minutes