Description
filelock is a platform-independent file lock for Python. From 3.22.0 until 4.2.1, SoftFileLock can trust a forged process identifier in a marker that an attacker can modify but cannot remove, allowing an authorized contender such as another process of the holder's account or root to act as a confused deputy, remove the live marker, and admit another holder. This issue is fixed in version 4.2.1.
Published: 2026-10-20
Score: 4.7 Medium
EPSS: n/a
KEV: No
Impact: Privilege Escalation
Action: Apply Patch
AI Analysis

Impact

SoftFileLock, a cross‑platform file lock for Python, can accept a forged process identifier in a marker file when the marker is writable. An attacker who can create or modify this marker can, without removing it, delegate to another process running under the same account or root to delete the live marker. The attack allows the new process to claim the lock that is actually held by a different process, potentially leading to unauthorized access, data corruption, or denial of service. The weakness is an authorization bypass through a user controlled key (CWE‑345).

Affected Systems

The vulnerability affects tox‑dev filelock versions 3.22.0 through 4.2.1. Upgrading to version 4.2.1 or later resolves the issue. No specific workaround is provided by the vendor.

Risk and Exploitability

The CVSS score of 4.7 indicates moderate severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog. The attack vector is local; an attacker needs the ability to create or write to the lock marker file, which typically requires the same Unix user that owns the lock or root privileges. The exploit could result in a confused deputy scenario but does not grant remote code execution. The moderate risk combined with the need for local access means that the vulnerability is significant for systems that rely on the lock for critical coordination but is less urgent than higher severity flaws.

Generated by OpenCVE AI on October 20, 2026 at 17:28 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.
  • Restrict file system permissions on lock marker files so that only trusted processes can modify them.
  • If immediate upgrade is not possible, isolate processes that use SoftFileLock to distinct user accounts and audit the application logic to ensure that lock markers cannot be forged or altered by unwanted processes.

Generated by OpenCVE AI on October 20, 2026 at 17:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 17:15: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 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 20 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Description filelock is a platform-independent file lock for Python. From 3.22.0 until 4.2.1, SoftFileLock can trust a forged process identifier in a marker that an attacker can modify but cannot remove, allowing an authorized contender such as another process of the holder's account or root to act as a confused deputy, remove the live marker, and admit another holder. This issue is fixed in version 4.2.1.
Title filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable marker
Weaknesses CWE-345
References
Metrics cvssV3_1

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


Subscriptions

Tox-dev Filelock
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T15:14:56.836Z

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

Link: CVE-2026-112939

cve-icon Vulnrichment

Updated: 2026-10-20T15:14:48.883Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-10-20T19:48:50.250

Link: CVE-2026-112939

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity