Description
filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, SoftFileLock versions from 4.1.0 can reuse a stale observation when an attacker pre-dates and removes its own marker, at least two lock-user processes are waiting, coarse or matching modification times preserve the observation, and an honest contender creates a fresh marker on the reused inode, causing that live marker to be removed as stale. This issue is fixed in version 4.2.1.
Published: 2026-10-20
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Potential lock eviction leading to race conditions and integrity issues
Action: Immediate Patch
AI Analysis

Impact

SoftFileLock can mistakenly evict a freshly created lock file when an attacker removes an older marker that the library mistakenly deems stale. This occurs in versions 4.1.0 through 4.2.0 when two or more processes are waiting for a lock, the modification times are coarse or match, and the library preserves a stale observation. The eviction removes a live marker, allowing an attacker to exit a lock that was properly held by another user. The impact is loss of lock integrity, potentially leading to race conditions, data corruption, or unauthorized concurrent access to shared resources.

Affected Systems

The vulnerability affects the tox‑dev:filelock package, specifically versions 4.1.0 up to, but not including, 4.2.1. Users of the SoftFileLock component in any Python environment that carries one of these affected releases are at risk.

Risk and Exploitability

The CVSS score of 4.7 indicates moderate severity; the EPSS score is 0.206% (<1%), and the issue is not listed in the CISA KEV catalog. The attack requires local file system access and the presence of two competing lock-user processes. The likely attack vector is a local user who can manipulate file timestamps and inodes to create a pre‑dated marker. Given these constraints, exploitation is limited to compromised or poorly isolated environments.

Generated by OpenCVE AI on October 28, 2026 at 01:47 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade filelock to version 4.2.1 or later via pip or your package manager.
  • Ensure that all services or applications that depend on filelock restart using the upgraded version.
  • Continue to monitor lock behavior for any unexpected evictions after applying the patch.

Generated by OpenCVE AI on October 28, 2026 at 01:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2g95-wg33-c5x2 filelock: SoftFileLock evicts a fresh lock file whose watched age another local user's pre-dated file passed on through inode reuse
History

Tue, 27 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CPEs cpe:2.3:a:tox-dev:filelock:*:*:*:*:*:python:*:*

Wed, 21 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 20 Oct 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Tox-dev
Tox-dev filelock
Vendors & Products Tox-dev
Tox-dev filelock

Tue, 20 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 20 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Description filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, SoftFileLock versions from 4.1.0 can reuse a stale observation when an attacker pre-dates and removes its own marker, at least two lock-user processes are waiting, coarse or matching modification times preserve the observation, and an honest contender creates a fresh marker on the reused inode, causing that live marker to be removed as stale. This issue is fixed in version 4.2.1.
Title filelock: SoftFileLock evicts a fresh lock file whose watched age another local user's pre-dated file passed on through inode reuse
Weaknesses CWE-694
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Tox-dev Filelock
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T15:27:25.903Z

Reserved: 2026-10-19T20:16:09.857Z

Link: CVE-2026-112906

cve-icon Vulnrichment

Updated: 2026-10-20T15:27:20.387Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-20T15:17:15.163

Modified: 2026-10-27T21:06:04.367

Link: CVE-2026-112906

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-20T14:09:51Z

Links: CVE-2026-112906 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-28T02:00:16Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

  • CWE-694

    Use of Multiple Resources with Duplicate Identifier