Description
filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, SoftFileLock can restore a stale marker by name after moving it aside, allowing another local user with rename access in a non-sticky lock directory to swap in a symbolic link and, on a runtime that follows the link and a same-filesystem target, make the lock user hard-link one of its files into the lock directory. This issue is fixed in version 4.2.1.
Published: 2026-10-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Local lock manipulation leading to data tampering
Action: Apply Patch
AI Analysis

Impact

SoftFileLock in Filelock versions 4.1.0 through 4.2.1 can restore a stale lock marker by moving it aside and then recreating it. A local user with rename permission on a non‑sticky lock directory can replace that marker with a symbolic link that points to a target on the same filesystem. When the library later accesses the lock file, the runtime follows the link, creating a hard link to an arbitrary file owned by the attacker inside the lock directory. This allows the attacker to interfere with the locking process, potentially causing data corruption, unintended overwrite of files, or unauthorized access to authenticated data. The weakness is a form of improper input handling and path traversal, reflected by CWE‑59 and resource management error CWE‑363.

Affected Systems

The vulnerability affects the tox‑dev Filelock Python package, specifically versions 4.1.0 through 4.2.1. Any environment where the package is installed and the lock directory is located on a writable, non‑sticky filesystem is vulnerable. All users who execute code that creates or manipulates Filelock locks in such directories could be impacted.

Risk and Exploitability

The CVSS score of 5.3 signals moderate severity, and the EPSS score is below 1%, indicating a low probability of widespread exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires local presence with write/rename rights to the lock directory. An attacker can manipulate the lock state or insert a hard link to a file of their choice, potentially disrupting concurrent processes or tampering with protected data. There is no evidence of remote or privilege‑escalation capabilities in the current description.

Generated by OpenCVE AI on October 22, 2026 at 20:30 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.
  • If an upgrade is not feasible, relocate lock directories to a location with a sticky bit or otherwise restrict rename and hard‑link operations to the creating process.
  • Restrict lock directory permissions so that only trusted services can modify links, and enforce these limits through system mechanisms such as AppArmor or SELinux.

Generated by OpenCVE AI on October 22, 2026 at 20:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-crv4-6mhj-j5jh filelock: SoftFileLock stale-break restore follows a swapped-in symbolic link and hard-links a file of the user running the lock into the lock directory
History

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

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

Wed, 21 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Weaknesses CWE-59
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 14:45: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 can restore a stale marker by name after moving it aside, allowing another local user with rename access in a non-sticky lock directory to swap in a symbolic link and, on a runtime that follows the link and a same-filesystem target, make the lock user hard-link one of its files into the lock directory. This issue is fixed in version 4.2.1.
Title filelock: SoftFileLock stale-break restore follows a swapped-in symbolic link and hard-links a file of the user running the lock into the lock directory
Weaknesses CWE-363
References
Metrics cvssV3_1

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


Subscriptions

Tox-dev Filelock
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-21T15:55:21.992Z

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

Link: CVE-2026-112914

cve-icon Vulnrichment

Updated: 2026-10-21T14:24:19.719Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-10-21T21:17:46.193

Link: CVE-2026-112914

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-20T14:26:18Z

Links: CVE-2026-112914 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T20:45:05Z

Weaknesses
  • CWE-363

    Race Condition Enabling Link Following

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')