CVE-2026-112910

filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL

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 3.10.0 until 4.2.1, filelock on Windows ignores the mode argument for WindowsFileLock files and the ReadWriteLock SQLite database. A lock created with mode=0o600 receives the parent directory's inheritable ACL because _open_non_reparse_fd and _nt_open do not create an owner-only security descriptor. Another local account with inherited access can read holder metadata or the lock database, modify those files where the ACL permits writes, or take the byte-range lock after release and delay later acquisitions. UnixFileLock is not affected, and mutual exclusion between cooperating processes continues to hold. This issue is fixed in version 4.2.1.

Analysis

AI-generated

Technical impact

The vulnerability in filelock allows a WindowsFileLock file created with mode 0o600 to inherit the parent directory's ACL instead of creating an owner‑only security descriptor. This oversight means that other local accounts with inherited directory access can read the lock holder metadata, modify the SQLite database used by ReadWriteLock, or take the byte‑range lock after it is released, potentially delaying future lock acquisitions. While the mutual exclusion semantics remain intact, the lack of proper permission enforcement permits local privilege escalation and data exposure within an affected Python environment.

Affected Systems

The issue affects the tox‑dev:filelock library for Python versions 3.10.0 through 4.2.1, specifically the WindowsFileLock implementation and the ReadWriteLock SQLite database. UnixFileLock is unaffected. The vulnerability was addressed in filelock 4.2.1; earlier releases remain vulnerable.

Risk and Exploitability

With a CVSS score of 5.3 the vulnerability is of medium severity. No EPSS score is available, and it is not listed in the CISA KEV catalog, indicating limited publicly known exploits as of now. The attack vector is local: an attacker must already have a local account with inherited directory access. The vulnerability does not lead to remote code execution or bypass of authentication, but it does enable lateral access to lock metadata and potential disruption of lock coordination.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to filelock version 4.2.1 or newer, which correctly applies the mode privileges to lock files and the ReadWriteLock database.
  • Restrict the ACL on directories used for lock files so that only the intended application user has write access, limiting the ability of other local accounts to read or modify lock data.
  • If an upgrade is not immediately possible, manually set restrictive permissions on the lock directory after creating locks, ensuring that no other local user inherits access.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8mx5-7m5m-r77g filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
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.10.0 until 4.2.1, filelock on Windows ignores the mode argument for WindowsFileLock files and the ReadWriteLock SQLite database. A lock created with mode=0o600 receives the parent directory's inheritable ACL because _open_non_reparse_fd and _nt_open do not create an owner-only security descriptor. Another local account with inherited access can read holder metadata or the lock database, modify those files where the ACL permits writes, or take the byte-range lock after release and delay later acquisitions. UnixFileLock is not affected, and mutual exclusion between cooperating processes continues to hold. This issue is fixed in version 4.2.1.
Title filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
Weaknesses CWE-732
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/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 9, 2026, 6:50 PM
Reserved
Oct 19, 2026, 8:16 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 10:17 PM
Modified
Nov 9, 2026, 7:16 PM
Severity
Moderate
Public date
Nov 5, 2026, 9:47 PM