Unverified Ownership Affecting filelock package, versions [3.30.0,4.2.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.11% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FILELOCK-21280756
  • published20 Oct 2026
  • disclosed20 Oct 2026
  • creditAnthropic's OSS Scanner

Introduced: 20 Oct 2026

NewCVE-2026-112911  (opens in a new tab)
CWE-283  (opens in a new tab)

How to fix?

Upgrade filelock to version 4.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Unverified Ownership via the strict lock implementation in _strict.py and related claim directory handling, where mkdir(mode=0o700) only enforces private permissions when it creates the directory and the subsequent lstat check reads neither st_uid nor the permission bits. A local attacker who can replace the lock's claim directory or any of its ancestors can hijack the lock, leading to integrity violations or denial of service against processes relying on the lock for mutual exclusion.

Note: This is only exploitable when another local user can replace the lock's directory or any of its ancestors.

CVSS Base Scores

version 4.0
version 3.1