Link following in filelock - CVE-2026-112912
Published: November 2, 2026
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.