Insufficient Verification of Data Authenticity Affecting filelock package, versions [3.22.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.14% (4th 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-21280760
  • published20 Oct 2026
  • disclosed20 Oct 2026
  • creditAnthropic's OSS Scanner

Introduced: 20 Oct 2026

NewCVE-2026-112939  (opens in a new tab)
CWE-345  (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 Insufficient Verification of Data Authenticity via owner_is_stale in src/filelock/_soft.py and src/filelock/_identity.py, when a process owner identity comparison is performed between a lock holder whose start token was recorded without a boot ID (high 64 bits equal to zero) and a new process whose token includes a boot ID. Because the original comparison used set membership (process_start_token(pid) in {None, start_token}) rather than a boot-ID-aware equality check, a live lock holder can be incorrectly classified as stale when the reader and the owner run in different Linux time namespaces or when one side cannot read /proc/sys/kernel/random/boot_id. This allows a competing process to prematurely reclaim the lock, corrupting the mutual-exclusion guarantee and enabling unauthorized writes to the protected resource.

CVSS Base Scores

version 4.0
version 3.1