CVE-2026-144351: filelock: SoftFileLock recovery can admit two holders through a foreign-owned record
filelock is a platform-independent file lock for Python. From 4.2.1 until 4.3.0, during stale-marker recovery, SoftFileLock can admit two holders when a foreign-owned recovery record can reach the public lock path and another account can create entries in a shared sticky lock directory. This requires a POSIX filesystem that supports atomic name exchange. An affected caller can enter a critical section while its peer still holds the lock. This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
filelockto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using filelock versions from 4.2.1 through before 4.3.0 may be exposed if SoftFileLock operates in a shared sticky lock directory on a POSIX filesystem that supports atomic name exchange.
What conditions are required for exploitation?
A foreign-owned recovery record must be able to reach the public lock path, and another account must be able to create entries in the shared sticky lock directory. Exploitation can allow a caller to enter a critical section while another holder still holds the lock.
What version resolves the issue?
The issue is fixed in filelock version 4.3.0. Upgrade affected installations to 4.3.0.