The filelock ReadWriteLock and AsyncReadWriteLock components use SQLite databases for locking, but on Linux and POSIX systems, SQLite reopens lock database files by name, following symlinks and acting on side files like rollback journals and write-ahead logs. This behavior allows a local attacker with write access to the directory containing the lock database (if it is world- or group-writable without the sticky bit) to manipulate these files, causing the lock user to write attacker-controlled data into their own files, create or unlink files, or disrupt locking operations. The vulnerability affects filelock versions 3.20.4 through 4.2.0, with fixes starting at 0.0.38_25. The CVSS 3.1 score is 7.1 (High), reflecting local low-privilege attack complexity with high integrity and availability impacts but no confidentiality impact.
A vulnerability in the filelock library's ReadWriteLock and AsyncReadWriteLock components allows a local user with write access to the lock database file path to cause every acquire operation to stall or hang indefinitely, ignoring timeout settings. This is achieved by placing a crafted SQLite database file at the lock path, which triggers expensive schema loading operations that block lock acquisition. The issue affects filelock versions 3.20.4 through 4.2.0 and results in a denial of service affecting availability only, with no confidentiality or integrity impact.
GitPython's Submodule.move() API does not properly handle symbolic links in intermediate path components, allowing an attacker-controlled symlink in a cloned repository to redirect a submodule move operation outside the parent repository's worktree. This causes the submodule checkout to be moved to an attacker-chosen directory outside the expected location, corrupting the parent repository's index and configuration. The issue affects GitPython 3.1.62 and current main branch and requires the application to explicitly call Submodule.move() on a path beneath the symlink. No code execution or confidentiality impact is demonstrated.
A vulnerability in filelock's ReadWriteLock and AsyncReadWriteLock components allows a local user with write permission on the directory holding the lock database to rename directories onto the private .filelock-* link directories. This causes the lock user's process to recursively delete the renamed directory tree with the lock user's permissions without error. The issue affects filelock versions 4.1.0 through 4.2.0 on macOS and POSIX systems without a usable /proc/self/fd, such as chroot or containers without /proc. The vulnerability requires a non-sticky shared parent directory writable by the attacker. The CVSS 3.1 score is 6.1 (Medium). A fix is available in version 4.67.0.
A vulnerability in filelock's SoftReadWriteLock and AsyncSoftReadWriteLock components allows a local user who owns the lock's .rw directory tree to cause the lock holder's refresh operation to hang or overwrite files. This occurs because the lock holder refreshes its record by reopening and writing to a file without verifying the file type, allowing an attacker to replace the file with a FIFO (named pipe) or a hard link. The FIFO causes the lock holder's write or read lock to hang indefinitely, preventing heartbeat refreshes and allowing multiple processes to believe they hold the lock simultaneously. The hard link variant can overwrite the first ~135 bytes of a private file if the kernel permits hard links to files not owned by the user. The issue affects filelock versions >=0.25.0 and <0.26.1 and has a CVSS score of 6.1 (medium severity).