MEDIUM 4.7 PyPI

filelock: Planted Windows path prevents private soft-lock recovery

GHSA-fmp2-7mgr-gp5h · CVE-2026-144334

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 allowed to create drive-root directories can influence the owner identity recorded by SoftFileLock and MarkerSoftFileLock, including for locks in a private directory. If the holder dies, later processes can mistake the dead owner's marker for a remote hold and leave the lock unavailable.

Affected versions and mitigation

Confirmed affected: = 4.2.12. Upgrade to 4.3.0.

Windows now skips the Linux PID-namespace probe. Use the native Windows FileLock where suitable. For an existing stranded marker, verify that the holder has exited before using break_lock(). A finite lifetime can also expire a live holder. Fix in PR #1036

Credits

Scan filelock-20261116-009; finding ANT-2026-K9PQD1EN.

Ready to move

Start Securing

Free, no credit card | First findings in minutes