CVE-2026-144405 — Filelock — CWE-667
## Summary 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](https://github.com/oss-security-shopify) reported this through private vulnerability reporting as `GHSA-386w-3w6q-9c53`, received on 17 November 2026. ## Affected area Acquisition of the native Unix lock, `UnixFileLock`, which `FileLock` names where `fcntl` is available. ## Attacker-controlled input Another local account must be able to create the lock file before the victim does, in a sticky directory both can write, and must know or guess the lock path. It does not need access to the resource the lock protects, and it does not need to win a race: it removes the file at any time during a hold. ## Affected code In 4.2.11, [`_open_lock_file`](https://github.com/tox-dev/filelock/blob/554c37b565dba0e0a5a92e4064cefc057a309da4/src/filelock/_unix.py#L127-L152) opens an existing file when the exclusive create fails, and [`_finalize_locked_fd`](https://github.com/tox-dev/filelock/blob/554c37b565dba0e0a5a92e4064cefc057a309da4/src/filelock/_unix.py#L178-L185) records the hold after checking only that the file still has a link. ## Mechanism 1. The attacker creates the lock file
## Summary 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](https://github.com/oss-security-shopify) reported this through private vulnerability reporting as `GHSA-386w-3w6q-9c53`, received on 17 November 2026. ## Affected area Acquisition of the native Unix lock, `UnixFileLock`, which `FileLock` names where `fcntl` is available. ## Attacker-controlled input Another local account must be able to create the lock file before the victim does, in a sticky directory both can write, and must know or guess the lock path. It does not need access to the resource the lock protects, and it does not need to win a race: it removes the file at any time during a hold. ## Affected code In 4.2.11, [`_open_lock_file`](https://github.com/tox-dev/filelock/blob/554c37b565dba0e0a5a92e4064cefc057a309da4/src/filelock/_unix.py#L127-L152) opens an existing file when the exclusive create fails, and [`_finalize_locked_fd`](https://github.com/tox-dev/filelock/blob/554c37b565dba0e0a5a92e4064cefc057a309da4/src/filelock/_unix.py#L178-L185) records the hold after checking only that the file still has a link. ## Mechanism 1. The attacker creates the lock file
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-144405
CVSS 2.5/10 · LOW · 03.12.2026
CWE: CWE-667
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ## Summary
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.
Affected: filelock
⚡ ATTACK VECTOR
Local/physical access (AV:L) · low-privilege account (PR:L) · no user interaction (UI:N).
🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L).
🛡️ REMEDIATION
→ Apply vendor security update for filelock.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📌 Low priority — routine update sufficient.
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]