CVE-2026-112941 is a local integrity vulnerability in filelock versions 4.1.0 through 4.2.0 involving SoftReadWriteLock. A local user with write access to the lock's parent directory can replace the lock directory tree with symbolic links after the first lock acquisition, causing the lock user process to write lock records through the symlinked path. This results in the lock user's files being replaced or deleted, breaking functionality such as a git repository's HEAD file. The vulnerability requires no race condition and affects Linux and POSIX platforms. The CVSS score is 3.3 (Low) due to local attack vector and low integrity impact. A fix is available in version 0.32.2_1.
A vulnerability in filelock versions 3.22.0 through 4.2.0 allows a local user with write access to a lock marker file (but not removal rights) to forge the process ID in the marker. This causes another process running as the lock owner or root to mistakenly consider the lock stale and remove the live marker, resulting in two processes simultaneously holding the lock and potentially corrupting the protected resource. The issue arises when the marker file is created with group or other write permissions, typically due to an explicit mode or permissive umask settings in a sticky or non-removable directory.
A race condition vulnerability exists in filelock versions >=0.31.3_3 and <0.32.2_1 where StrictSoftFileLock and AsyncStrictSoftFileLock follow a symbolic link swapped in the <path>.filelock directory. This allows a local user with write access to rename the .filelock directory to a symbolic link after a check, causing the lock user to create claim files in an attacker-chosen directory. This can lead to denial of service by causing stranded claims that block other locks until manually force-broken.
The ReadWriteLock and AsyncReadWriteLock classes in mlx-lm versions 0.30.7 through 0.32.0 resolve lock file paths following symlinks and pass them to sqlite3.connect() without preventing symlink traversal. This allows a local attacker with write access to the lock directory to cause the victim process to create or lock files at attacker-chosen locations, potentially breaking mutual exclusion and corrupting protected resources.
A vulnerability in the filelock library versions 3.22.0 through 4.2.0 allows a local unprivileged user to cause two processes of the lock user to hold the same lock simultaneously. This occurs due to a race condition in the stale-lock break mechanism that relies on inode numbers and modification times. On filesystems like ext4 and xfs that reuse inode numbers immediately after file deletion, an attacker can create and unlink files to manipulate lock markers, causing live lock files to be removed incorrectly. This results in a high integrity impact as concurrent holders can write protected data without detection, though confidentiality and availability are unaffected.
CVE-2026-112934 is a medium severity local vulnerability in filelock versions >=0.32.0 and <0.32.2_1. It involves the SoftReadWriteLock mechanism refreshing its holder record by reopening and writing to a file without verifying the file type, allowing a local attacker who owns the lock's .rw directory to cause the lock user's process to hang by replacing the holder record with a named pipe (FIFO). Additionally, on systems where the kernel permits hard links to files not owned by the user (e.g., Linux with fs.protected_hardlinks=0), the attacker can cause the lock user to overwrite part of one of its own private files. The vulnerability leads to denial of service by stalling lock acquisition and heartbeat threads, potentially allowing multiple processes to believe they hold the write lock simultaneously. A fix is available in version 0.32.2_1.
The filelock library's ReadWriteLock and AsyncReadWriteLock use an SQLite-backed lock database that runs PRAGMA journal_mode=MEMORY on every acquire, causing SQLite to load the entire schema of the lock file. A local attacker who can place or overwrite the lock database file can craft a file that causes every acquire_read or acquire_write call to stall indefinitely or hang, ignoring timeouts and blocking flags. This results in a denial of service affecting availability only, with no confidentiality or integrity impact. The vulnerability affects filelock versions 3.20.4 through 4.2.0.
A symlink swap vulnerability in the SoftFileLock implementation of the filelock library (versions 3.32.6 through 4.2.0) allows a local user with write access to the lock directory to leak one bit of information about whether a target path exists and is writable by the lock user. The vulnerability arises from a time-of-check to time-of-use (TOCTOU) race condition during writability checks that follow symlinks. This leak is mitigated on Linux by the fs.protected_symlinks kernel setting in sticky world-writable directories like /tmp, but not in non-sticky or group-writable directories. The vulnerability has a low CVSS score of 2.5 due to its local scope, high attack complexity, and limited confidentiality impact. A fix is available in version 0.32.2_1.
The vulnerability affects the StrictSoftFileLock and SoftReadWriteLock classes in the mlx-lm product, versions >=0.31.3_3 and <0.32.2_1. These locking mechanisms adopt a protocol directory if it already exists without verifying ownership, allowing a local attacker to pre-create this directory in shared sticky-bit directories like /tmp. This can lead to multiple processes entering the same critical section simultaneously, causing integrity and availability issues such as concurrent writes and denial of service via spinning or memory exhaustion. The flaw requires the attacker to have local user access and to create the directory before the legitimate user’s first lock acquisition. The CVSS 3.1 score is 6.3 (Medium). A fix is available in version 0.32.2_1.
UnixFileLock, used by FileLock and AsyncFileLock on Unix, truncates and can chmod any regular file that another local user renames or hard-links onto the lock path. This occurs because UnixFileLock empties the file it finds at the lock path when acquiring the lock and applies an explicit mode if provided. An attacker with local access who can rename or hard-link a file onto the lock path can cause the lock user’s file to be truncated and potentially made writable by the attacker, enabling unauthorized read and write access. This vulnerability affects all filelock releases up to and including 4.2.0. The issue requires specific conditions such as writable non-sticky directories or disabled kernel hardlink protections. The CVSS 3.1 score is 6.1 (Medium).
The filelock library versions 3.30.0 through 4.2.0 have a vulnerability in the StrictSoftFileLock and AsyncStrictSoftFileLock classes where claim directories are created without applying the specified restrictive mode, resulting in directories that may be writable by other local users depending on the umask or default ACL settings. This allows another local user with write permissions on the claim directory to unlink the lock claim files, causing the lock to be incorrectly released and enabling concurrent holders to write protected data without detection. The vulnerability requires a local attacker with low privileges and a permissive environment configuration. The issue is fixed in version 0.32.2_1 of the affected product mlx-lm.
A vulnerability in Hugging Face Transformers versions 4.49.0 through 5.8.1 allows remote Python files to be written to local disk without user consent when using the GenerativePreTrainedModel.load_custom_generate() function. The function caches a remote module file before performing the trust check, causing attacker-controlled code to be saved persistently even if the user declines to trust it. Execution of this code is blocked by the trust prompt, but the unauthorized files remain on disk and may cause stale cache collisions in future trusted model loads.
CVE-2026-5241 is a high-severity vulnerability in Red Hat AI Inference Server 3.4.5 (spyre) affecting the mlx-lm product, specifically in the huggingface/transformers LightGlue model loading path. It allows arbitrary code execution during model initialization. The vulnerability has a CVSS score of 8.0 and requires user interaction with high attack complexity. No known exploits in the wild have been reported. The Red Hat advisory lists this CVE among multiple others affecting the product but does not provide specific patch or fix details.
A denial of service vulnerability (CVE-2026-0994) exists in the protobuf Python package used by Red Hat products. The flaw allows bypassing recursion depth limits, potentially causing a denial of service. Red Hat has released security updates fixing this issue in protobuf versions 0.30.5_1 and 9.0.11_1.
This security update for python-filelock addresses two time-of-check to time-of-use (TOCTOU) race condition vulnerabilities (CVE-2025-68146 and CVE-2026-22701). These flaws could allow local attackers to corrupt or truncate arbitrary user files. The vulnerabilities affect multiple versions of python-filelock and have been fixed in specified later versions. The severity is assessed as medium.