PT-2025-51773

CVE-2025-68146

·

Published

2025-12-16

·

Updated

2026-09-18

Description by

CVSS 3.1
6.5
Medium
MetricsAV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H
Name of the Vulnerable Software and Affected Versions filelock versions prior to 3.20.1
Description filelock is a platform-independent file lock for Python. A Time-of-Check-Time-of-Use (TOCTOU) race condition allows local attackers to corrupt or truncate arbitrary user files through symlink attacks. The issue exists in file lock creation where the software checks for file existence before opening it with O TRUNC. An attacker can create a symlink pointing to a victim file between the check and open, causing the system to follow the symlink and truncate the target file. This affects users on Unix, Linux, macOS, and Windows systems. The attack requires local filesystem access and the ability to create symlinks. Exploitation can succeed within 1-3 attempts when lock file paths are predictable.
Recommendations Upgrade to version 3.20.1. If immediate upgrade is not possible, use SoftFileLock instead of UnixFileLock/WindowsFileLock. Ensure lock file directories have restrictive permissions (chmod 0700) to prevent untrusted users from creating symlinks. Monitor lock file directories for suspicious symlinks before running trusted applications.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-W853-JP5J-5J7F
AZL-72739
AZL-79232
CLEANSTART-2026-PE38920
ECHO-D3C5-64D2-C403
OESA-2026-3143
OPENSUSE-SU-2026:10010-1
OPENSUSE-SU-2026:10055-1
OPENSUSE-SU-2026:20144-1
PYSEC-2026-1375
SUSE-SU-2026:0082-1
SUSE-SU-2026:0220-1
SUSE-SU-2026:20216-1
USN-7999-1
Found an issue in the description? Have something to add? Feel free to write us 👾