Improper locking in filelock on Unix lets two processes hold one lock
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
tox-dev filelock from 3.13.2 before 4.2.12 locks a regular file that already exists at the lock path on Unix, including one another local account created. A local user with low privileges can remove that file from a sticky directory such as /tmp while another process holds the lock, so the next process locks a new file and two processes hold the same exclusive lock (CWE-667). Code guarded by the lock can then run twice at the same time, but the attacker gains no access to the resource and no code execution.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
filelock is a platform-independent file lock for Python. From 3.13.2 until 4.2.12, on Unix, FileLock locks a regular file that already exists at the lock path, including one another local account created. Under a sticky directory such as /tmp that account owns the file and may remove it while a process holds the lock. The next process to acquire the lock creates and locks a new file at the same path, so two processes hold the same exclusive lock. oss-security-shopify reported this through private vulnerability reporting as GHSA-386w-3w6q-9c53, received on 17 November 2026. The affected native Unix lock is UnixFileLock, which FileLock selects where fcntl is available. Two cooperating processes run the protected section at the same time, so whatever the application guards with the lock can be written twice or left inconsistent. The attacker gains no access to that resource and no code execution. What the overlap costs depends on the application and is not established here. This issue is fixed in version 4.2.12.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade filelock to version 4.2.12, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA filelock (tox-dev) Fixed in 4.2.12
Timeline
- 2026-12-03 Threatist record created from CVE-2026-144405
- 2026-12-04 CISA SSVC decision points changed
References
More tox-dev vulnerabilities
- TI-2026-76862 Race condition in filelock ReadWriteLock allows file overwrites CVSS 3.1HIGH 7.1
- TI-2026-76853 filelock soft locks adopt directories created by other local users CVSS 3.1MEDIUM 6.3
- TI-2026-76859 Symlink following in filelock ReadWriteLock redirects SQLite database CVSS 3.1MEDIUM 6.1
- TI-2026-76857 Unsafe holder record refresh in filelock SoftReadWriteLock CVSS 3.1MEDIUM 6.1
- TI-2026-76852 filelock UnixFileLock lets local users truncate and chmod files CVSS 3.1MEDIUM 6.1
- TI-2026-76856 Crafted lock database makes filelock ReadWriteLock acquisitions hang CVSS 3.1MEDIUM 5.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences