File Truncation Vulnerability in Python's FileLock by Tox Dev
CVE-2026-112909
6.1MEDIUM
What is CVE-2026-112909?
The FileLock library for Python, particularly prior to version 4.2.1, is susceptible to a vulnerability where UnixFileLock may unintentionally truncate a regular file when renamed onto the lock path by a user with sufficient privileges. This flaw arises when the file lock is exploited through local user permissions or permissive hard-link policies, potentially leading to unauthorized file modifications or data loss. The flaw is rectified in version 4.2.1, emphasizing the importance of using updated versions to ensure file integrity.
Affected Version(s)
filelock < 4.2.1
