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.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-fmp2-7mgr-gp5h
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144334
- WEB https://github.com/tox-dev/filelock/pull/1036
- WEB https://github.com/tox-dev/filelock/commit/4f7a3d72f74157a638fa0a79dac45865f0cb8358
- PACKAGE https://github.com/tox-dev/filelock
- WEB https://github.com/tox-dev/filelock/releases/tag/4.3.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes