[ CVE-2026-112908 · Published 5 Nov 2026 ]
filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold
[ Description ]Official description
filelock is a platform-independent file lock for Python. From version 3.30.0 until version 4.2.1, StrictSoftFileLock and AsyncStrictSoftFileLock on POSIX systems create coordination and claim directories without applying the caller’s restrictive lock mode. A permissive umask or inherited default ACL can leave these directories writable by another local user, allowing that user to delete an active holder’s claims. Another authorized process can then acquire the lock while the original holder remains in its critical section. An attacker can also plant malformed claims to prevent acquisition. This issue is fixed in version 4.2.1.
[ Fixes ]How to fix it
- filelock 4.2.1Fixed version · GitHub Advisories · pip package filelock: upgrade to 4.2.1 or later (affected >= 3.30.0, <= 4.2.0)
Fixed versions
- tox-dev filelock: upgrade to 4.2.1 or laterEarlier versions are listed as affected
From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.
Vendor advisories and patches
- Vendor advisorygithub.com
- Patchgithub.com
- Patchgithub.com
- Release notesgithub.com
[ Packages ]Affected open-source packages
- filelock pipAffected >= 3.30.0, <= 4.2.0 · fixed in 4.2.1 · GHSA-6627-m3xw-93mp