UNIX Hard Link Affecting filelock package, versions [4.0.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-21280758
  • published20 Oct 2026
  • disclosed20 Oct 2026
  • creditAnthropic's OSS Scanner

Introduced: 20 Oct 2026

NewCVE-2026-112934  (opens in a new tab)
CWE-62  (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 UNIX Hard Link via OsFiles.overwrite() in SoftReadWriteLock, which refreshes holder records by name without verifying the file identity. A local attacker who has rename access to the lock directory can replace a holder record with a named pipe to stall the lock, or, under a permissive hard-link policy, hard-link a reachable target file and cause the lock user to write through it.

Note: The hard-link vector requires a non-default kernel hard-link policy (e.g., fs.protected_hardlinks=0 on Linux, or macOS/BSD default behavior); the named-pipe vector requires rename access to the lock directory.

CVSS Base Scores

version 4.0
version 3.1