CVE-2026-144405
## 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 with mode `0666` in a sticky directory. 2. The victim's exclusive create fails with `EEXIST`, or with `EACCES` where the kernel protects files in sticky directories ([`fs.protected_regular`](https://www.kernel.org/doc/html/latest/admin-guide/sysctl/fs.html#protected-regular)). Both paths reach `_open_existing_lock_file`, which opens the attacker's file without `O_CREAT`. [#317](https://github.com/tox-dev/filelock/pull/317) added the `EACCES` path in 3.13.2. 3. The victim takes [`flock`](https://
Properties
- Severity
- low
- Summary
- FileLock on Unix lets two processes hold one lock after another user removes the lock file
- Nvd fetched at
- 2026-12-06T11:16:09.893609+00:00
- Epss score
- 0.00166
- Cvss severity
- LOW
- Cvss score
- 2.5
- Retrieved at
- 2026-12-06T11:17:52+00:00
- Ghsa published
- 2026-12-04T22:16:18Z
- Source url
- https://github.com/advisories/GHSA-386w-3w6q-9c53
- Ghsa updated
- 2026-12-04T22:16:18Z
- Ghsa id
- GHSA-386w-3w6q-9c53
- Last source
- FIRST EPSS
- Score
- 2.5
- Cvss version
- 3.1
- Cve id
- CVE-2026-144405
- Cvss vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
- First seen by Signal
- 2026-12-03T22:53:32+00:00
- Name
- CVE-2026-144405
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph