CVE-2026-112938: filelock - Race Condition
- Cve: CVE-2026-112938
- Name: filelock - Race Condition
- Description: filelock is a platform-independent file lock for Python. From 3.30.0 until 4.2.1, On POSIX platforms, StrictSoftFileLock and AsyncStrictSoftFileLock validate the coordination directory in _ensure_protocol_directory but later reach the claims directory through _open_directory by pathname, allowing a local account that can rename the coordination name to swap in a symbolic link between check and use during acquisition. That race can create and leave claim files in another writable directory or strand claims in a different strict lock so the second lock times out. Separately, the claims property and force_break follow a resting symbolic link without a race when the lock user inspects or recovers the lock. Claims inspection discloses a file name to the other account only if the resulting exception text or claim_name reaches that account through a shared log, CI output, or error report. A blind force_break recovery that removes live claims from another strict lock can allow two processes into that lock's critical section; this path reaches other strict locks, not arbitrary files. This issue is fixed in version 4.2.1.
- Impact: Local attackers can cause lock timeouts or allow two processes into a critical section, potentially leading to data corruption or denial of service.
- Remediation: Upgrade to version 4.2.1 or later.
- Vulnerability type: race_condition
- Vulnerability impact: data_tampering, denial_of_service
- Requirements: Attacker needs a local account able to rename the coordination name
- Labels source: securitycontext
- Severity: medium
- Cvss score: 5.8
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
- Epss score: 0.00112
- Epss percentile: 0.01364
- Assignee: [email protected]
- Published at: 2026-11-05T22:17:47Z
- Age in days: 19
- Modified at: 2026-11-09T18:17:20Z
- Patch available: yes
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-112938
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-363 | Race Condition Enabling Link Following |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| tox-dev:filelock | >= 3.30.0, < 4.2.1 | no | cna_alias_text | /v1/products/tox-dev/filelock |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| tox-dev/filelock | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/tox-dev/filelock |
Index
- Repositories: 330
- Repositories high signal: 260
- Packages: 1
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts