SecurityContext

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

IdName
CWE-363Race Condition Enabling Link Following

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/tox-dev/filelock/commit/aaa18595d29795fab599a69d6b184d9a505dab4b
https://github.com/tox-dev/filelock/commit/bfa066d65a1ba9106f86ee9d027f7588b9c77e03
https://github.com/tox-dev/filelock/pull/839
https://github.com/tox-dev/filelock/releases/tag/4.2.1
https://github.com/tox-dev/filelock/security/advisories/GHSA-m462-7rxw-wvpg

Products

ProductAffectedPlatform boundSourcesUrl
tox-dev:filelock>= 3.30.0, < 4.2.1nocna_alias_text/v1/products/tox-dev/filelock

Projects

RepositoryLink kindsIndexedUrl
tox-dev/filelockcommit, fix, package, pull, releases, security_advisoryyes/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