CVE-2026-112907

filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break

Published Nov 5, 2026 CVSS 3.1 · 2.5 Low EPSS < 1% KEV · Not listed
Description
filelock is a platform-independent file lock for Python. From 3.22.0 until 4.2.1, soft lock classes on Windows read an existing marker with _read_lock_file and remove a stale marker through break_lock_file using pathname operations that wait for an oplock break. Another local account with read access to an unheld marker can keep a Level 1 or batch oplock unanswered, causing SoftFileLock.acquire and related async or fallback locks to wait beyond timeout, blocking=False, and cancel_check. A stale marker under the oplock cannot be broken, but mutual exclusion remains intact and no file other than the marker is accessed. This issue is fixed in version 4.2.1.

Analysis

AI-generated

Technical impact

The flaw in the SoftFileLock implementation on Windows creates a race condition where a stale lock marker file can be held by an oplock that never breaks. When another process or task attempts to acquire the same lock, the acquire call blocks past its prescribed timeout, effectively hanging the waiting operation. This makes any code path that relies on timely lock acquisition stall, which can reduce throughput or cause a service to stop responding. The vulnerability does not corrupt data or expose sensitive information, but it can lead to application hang or degraded availability.

Affected Systems

The issue affects the Python filelock library distributed by tox‑dev, specifically versions 3.22.0 through 4.2.1. Windows users who use the SoftFileLock or asynchronous variants of the lock class are impacted; other operating systems or the hard‑lock variants are not affected.

Risk and Exploitability

The CVSS score of 2.5 categorizes the risk as low, and the EPSS score is not available, indicating no known high exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the likely attack vector is a local Windows account with read access to the lock marker file, which could hold an oplock and force competing processes to exceed their timeout. An attacker who has local Windows account access and can read the lock marker file can purposely hold an oplock, forcing competing processes to exceed their timeout. While the attack is confined to the local environment and does not grant broader system compromise, it can still interrupt critical workflows if lock waits are part of a time‑sensitive process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the filelock library to version 4.2.1 or later where the oplock handling flaw is fixed.
  • Remove any stale lock marker files from the filesystem after upgrading, and verify that the new lock implementation does not block beyond its timeout.
  • Refine application permissions so that only trusted local accounts can read or write the lock marker directories, reducing the chance an unauthorized user can hold an oplock.

Generated by OpenCVE AI on November 6, 2026 at 13:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-567q-5qvw-pf92 filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Tox-dev
Tox-dev filelock
Vendors & Products Tox-dev
Tox-dev filelock
Type Values Removed Values Added
Description filelock is a platform-independent file lock for Python. From 3.22.0 until 4.2.1, soft lock classes on Windows read an existing marker with _read_lock_file and remove a stale marker through break_lock_file using pathname operations that wait for an oplock break. Another local account with read access to an unheld marker can keep a Level 1 or batch oplock unanswered, causing SoftFileLock.acquire and related async or fallback locks to wait beyond timeout, blocking=False, and cancel_check. A stale marker under the oplock cannot be broken, but mutual exclusion remains intact and no file other than the marker is accessed. This issue is fixed in version 4.2.1.
Title filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break
Weaknesses CWE-667
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-412

    Unrestricted Externally Accessible Lock

  • CWE-667

    Improper Locking

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 10, 2026, 4:38 AM
Reserved
Oct 19, 2026, 8:16 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 10:17 PM
Modified
Nov 10, 2026, 5:17 AM
Severity
Low
Public date
Nov 5, 2026, 9:50 PM