# GHSA-FMP2-7MGR-GP5H: Planted Windows path prevents private soft-lock recovery

- Database: GitHub
- Severity: CVSS 4.7 (Medium)
- Published: 2026-11-22
- Modified: 2026-12-03

## Tracked as

- [CVE-2026-144334](https://cve.now/CVE-2026-144334.md): filelock: Planted Windows path prevents private soft-lock recovery

## Affected versions

- filelock (PyPI): 4.2.12

## 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](https://github.com/tox-dev/filelock/pull/1036)

## Credits

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

## References

- https://github.com/tox-dev/filelock/security/advisories/GHSA-fmp2-7mgr-gp5h

Page: https://cve.now/GHSA-FMP2-7MGR-GP5H

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
