Description
filelock is a platform-independent file lock for Python. From 3.32.6 until 4.2.1, SoftFileLock can follow a swapped symbolic link during the conditional os.access writability check for a node without its owner-write bit, allowing another local user on a platform and directory configuration that follows the link to infer whether a chosen path exists and is writable from the observable acquisition result. This issue is fixed in version 4.2.1.
Published: 2026-10-20
Score: 2.5 Low
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Apply Patch
AI Analysis

Impact

SoftFileLock performs a writability check by following a symbolic link that a local user can place ahead of the target path. When the link is swapped during the check, the library follows the new target before verifying ownership bits, allowing the user to deduce whether the intended path exists and is writable based on whether the lock acquisition succeeds. This information disclosure permits a local attacker to discover files or directories they cannot normally see, and potentially use that knowledge to influence subsequent operations. The weakness is rooted in CWE‑59, untrusted symbolic‑link handling.

Affected Systems

The filelock library, maintained by tox-dev, is affected in all releases from version 3.32.6 up to but not including 4.2.1. These versions expose the SoftFileLock component to local symlink manipulation on platforms that permit symbolic link traversal. Users who rely on filelock for concurrency control or protection of temporary resources should identify whether their deployed version falls within this range.

Risk and Exploitability

With a CVSS score of 2.5, the vulnerability is assessed as low severity. The EPSS score is not available, and it is not listed in the CISA KEV catalog. The exploit requires a local user with the ability to create or alter symbolic links in directories that filelock accesses; no remote or authenticated access is required. The observable outcome is a boolean result of the lock attempt, which gives the attacker indirect knowledge of path existence and writability. While the impact is limited to information disclosure, it can aid future attacks that rely on knowing file locations.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the filelock package to version 4.2.1 or newer, where the symlink vulnerability is fixed.
  • Restrict write permissions on directories used by filelock to eliminate the ability of local users to create or replace symbolic links that point to arbitrary paths.
  • Review application code for any remaining use of SoftFileLock in earlierlock versions, and replace or guard those calls against user‑supplied paths.

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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-9j6q-wvj5-jgjg filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker
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 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Low


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 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 14:45:00 +0000

Type Values Removed Values Added
Description filelock is a platform-independent file lock for Python. From 3.32.6 until 4.2.1, SoftFileLock can follow a swapped symbolic link during the conditional os.access writability check for a node without its owner-write bit, allowing another local user on a platform and directory configuration that follows the link to infer whether a chosen path exists and is writable from the observable acquisition result. This issue is fixed in version 4.2.1.
Title filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker
Weaknesses CWE-59
References
Metrics cvssV3_1

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


Subscriptions

Tox-dev Filelock
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T15:37:56.208Z

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

Link: CVE-2026-112912

cve-icon Vulnrichment

Updated: 2026-10-20T15:37:49.246Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-10-21T21:18:18.623

Link: CVE-2026-112912

cve-icon Redhat

Severity : Low

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

Links: CVE-2026-112912 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T17:00:18Z

Weaknesses
  • CWE-59

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