Description
filelock is a platform-independent file lock for Python. From 4.0.0 until 4.2.1, SoftReadWriteLock refreshes holder records by name, allowing another local user with rename access to the lock directory to replace a record with a named pipe and stall the lock, or under a permissive hard-link policy to link a reachable target file and cause the lock user to write through it. This issue is fixed in version 4.2.1.
Published: 2026-10-20
Score: 6.1 Medium
EPSS: n/a
KEV: No
Impact: Unauthorized File Write
Action: Immediate Patch
AI Analysis

Impact

A flaw in the file locking library causes the SoftReadWriteLock component to refresh lock holder records by name. A local user with rename rights to the lock directory can replace a lock holder record with a named pipe, causing the locking process to block, or, if the operating system allows permissive hard‑link creation, link the record to a target file so that subsequent writes are redirected to that file. The outcome is either a denial of service or the accidental modification of an unrelated file by a process that believes it is writing to a lock file.

Affected Systems

The vulnerability affects the Python filelock library provided by tox‑dev. Versions from 4.0.0 up through 4.2.1 are susceptible. The fix is available in filelock 4.2.1 and later releases.

Risk and Exploitability

The exploit requires local privileges with permission to rename files in the lock directory or to create hard links, so it is a local integrity and availability vulnerability. The CVSS score of 6.1 indicates a moderate threat, and the EPSS score is not available so the likelihood of exploitation cannot be quantified. The vulnerability is not listed in CISA KEV. If an attacker can gain the required local access, they can cause a lock to fail and potentially write unintended data to files via hard‑link manipulation.

Generated by OpenCVE AI on October 20, 2026 at 16:55 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the filelock package to version 4.2.1 or later to eliminate the flaw.
  • If an upgrade is not immediately possible, restrict write and rename permissions on the lock directory to remove local users’ ability to rename lock files or create hard links.
  • Avoid using named pipes or hard links to supply lock holder files in environments where filelock is employed until the security update is applied.

Generated by OpenCVE AI on October 20, 2026 at 16:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 17: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 14:45:00 +0000

Type Values Removed Values Added
Description filelock is a platform-independent file lock for Python. From 4.0.0 until 4.2.1, SoftReadWriteLock refreshes holder records by name, allowing another local user with rename access to the lock directory to replace a record with a named pipe and stall the lock, or under a permissive hard-link policy to link a reachable target file and cause the lock user to write through it. This issue is fixed in version 4.2.1.
Title filelock: SoftReadWriteLock holder refresh writes through a hard link and hangs on a named pipe that another local user renames over its record
Weaknesses CWE-62
References
Metrics cvssV3_1

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


Subscriptions

Tox-dev Filelock
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T14:30:43.736Z

Reserved: 2026-10-19T21:30:47.244Z

Link: CVE-2026-112934

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-10-20T15:17:16.100

Link: CVE-2026-112934

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T17:30:13Z

Weaknesses