Race Condition Enabling Link Following in filelock - CVE-2026-112938

 

Race Condition Enabling Link Following in filelock - CVE-2026-112938

Published: November 2, 2026


Vulnerability identifier: #VU158674
CSH Severity: Low
CVSS v4: 5.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112938
CWE-ID: CWE-363
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to create directories and claim files with another user's privileges in unintended locations, disclose limited directory information, cause a denial of service, and bypass another strict lock's mutual exclusion.

The vulnerability exists due to a race condition enabling symbolic link following in filelock's StrictSoftFileLock and AsyncStrictSoftFileLock when resolving claim-directory paths after checking the coordination directory. A local user can replace a renameable <path>.filelock directory with a symbolic link between the check and subsequent pathname operations to redirect claim creation into a directory writable by the lock user's process and strand claims that block another lock. The claims property and force_break() also follow unchecked paths without requiring a race, permitting directory-information disclosure through exposed errors or removal of another lock's live claims during blind recovery.


Affected software

filelock

How to mitigate CVE-2026-112938

Install security update from vendor's website.

filelock - update to 4.2.1

External References

Related Security Bulletins