CVE-2026-112908

filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold

Published Nov 5, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
filelock is a platform-independent file lock for Python. From version 3.30.0 until version 4.2.1,  StrictSoftFileLock  and  AsyncStrictSoftFileLock  on POSIX systems create coordination and claim directories without applying the caller’s restrictive lock mode. A permissive umask or inherited default ACL can leave these directories writable by another local user, allowing that user to delete an active holder’s claims. Another authorized process can then acquire the lock while the original holder remains in its critical section. An attacker can also plant malformed claims to prevent acquisition. This issue is fixed in version 4.2.1.

Analysis

AI-generated

Technical impact

The vulnerability lies in the way StrictSoftFileLock and AsyncStrictSoftFileLock create coordination and claim directories without applying the caller’s restrictive lock mode, a weakness that falls under the CWE-279 and CWE-732 categories of improper authorization and permissive permissions. On POSIX systems a permissive umask or inherited default ACL can leave these directories writable by another local user, allowing that user to delete an active holder’s claims. The deleted or altered claims enable the other user to acquire the lock while the original holder continues to run in its critical section, effectively bypassing the lock mechanism. An attacker can also plant malformed claims to prevent acquisition by the legitimate owner, potentially disrupting processes or facilitating unauthorized execution within the critical region.

Affected Systems

The issue affects the filelock library published by tox-dev, specifically all releases from version 3.30.0 through 4.2.0; the fix is introduced in version 4.2.1.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and no EPSS information is available. The vulnerability is not listed in the CISA KEV catalog. The attack is local; any user or process that can write to the lock directories can exploit it. The exploit path is straightforward—delete or tamper with the lock claim directories—so an experienced local attacker can bypass the lock quickly, leading to race conditions and potential integrity violations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading filelock to version 4.2.1 or newer.
  • Ensure any running processes are updated to the patched version and remove any legacy lock directories that may remain on the filesystem.
  • If an immediate upgrade is not possible, restrict write permissions on the lock directories by setting a restrictive umask or enforcing ACLs, but consider this only a temporary mitigative measure.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6627-m3xw-93mp filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold
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 version 3.30.0 until version 4.2.1,  StrictSoftFileLock  and  AsyncStrictSoftFileLock  on POSIX systems create coordination and claim directories without applying the caller’s restrictive lock mode. A permissive umask or inherited default ACL can leave these directories writable by another local user, allowing that user to delete an active holder’s claims. Another authorized process can then acquire the lock while the original holder remains in its critical section. An attacker can also plant malformed claims to prevent acquisition. This issue is fixed in version 4.2.1.
Title filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold
Weaknesses CWE-732
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-279

    Incorrect Execution-Assigned Permissions

  • CWE-732

    Incorrect Permission Assignment for Critical Resource

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 10, 2026, 7:16 PM
Reserved
Oct 19, 2026, 8:16 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 10:17 PM
Modified
Nov 10, 2026, 8:17 PM
Severity
Moderate
Public date
Nov 5, 2026, 9:54 PM