Link following in filelock - CVE-2026-112912

 

Link following in filelock - CVE-2026-112912

Published: November 2, 2026


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

Vulnerability details

The vulnerability allows a local user to disclose whether a chosen path exists and is writable by the user acquiring a lock, including paths inside directories inaccessible to the probing user.

The vulnerability exists due to improper symbolic link resolution and a time-of-check/time-of-use race in filelock's raise_on_not_writable_file() helper when checking a soft lock path with os.lstat() followed by os.access(). A local user can create entries in the lock directory and repeatedly swap a mode-0466 file with a symlink to a chosen target between these checks, then distinguish PermissionError from the ordinary lock timeout to infer whether the target exists and is writable by the lock user.


Affected software

filelock

How to mitigate CVE-2026-112912

Install security update from vendor's website.

filelock - update to 4.2.1

External References

Related Security Bulletins