SecurityContext

CVE-2026-112940: filelock - Race Condition

  • Cve: CVE-2026-112940
  • Name: filelock - Race Condition
  • Description: filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock let SQLite reopen the database and side files by name; on POSIX systems an attacker with rename access in a non-sticky parent can swap those names to cause overwrite or unlink operations, while a writable adjacent hot journal is additionally required for attacker-chosen content overwrites. This issue is fixed in version 4.2.1.
  • Impact: Attackers can overwrite or unlink files, potentially leading to data corruption or loss.
  • Remediation: Update to version 4.2.1 or later.
  • Vulnerability type: race_condition
  • Vulnerability impact: data_tampering, denial_of_service
  • Requirements: Attacker needs rename access in a non-sticky parent directory and writable adjacent hot journal
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • Epss score: 0.0019
  • Epss percentile: 0.08584
  • Assignee: [email protected]
  • Published at: 2026-10-20T15:17:16Z
  • Age in days: 35
  • Modified at: 2026-10-22T22:18:02Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-112940
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-363Race Condition Enabling Link Following
CWE-59Improper Link Resolution Before File Access

Public exploits

UrlSourceAdded date
https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8nvd2026-10-20

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2dPatch
https://github.com/tox-dev/filelock/pull/834Patch
https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8Exploit, Mitigation, Patch, Vendor Advisory
https://github.com/tox-dev/filelock/releases/tag/4.2.1Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
tox-dev:filelock>= 3.20.4, < 4.2.1nonvd/v1/products/tox-dev/filelock

Projects

RepositoryLink kindsIndexedUrl
tox-dev/filelockcommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/tox-dev/filelock

Index

  • Repositories: 643
  • Repositories high signal: 496
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-10-20
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts