filelock vulnerabilities
51 known CVE vulnerabilities in filelock, translated and rated.
- CVE-2026-144405Low
filelock versions 3.13.2 through 4.2.12 on Unix lock an existing file that may be owned by another local account in a sticky directory such as /tmp. That account can remove the file while the lock is held, allowing two processes to hold the same exclusive lock. The issue is fixed in version 4.2.12.
- CVE-2026-144404Low
filelock before 4.3.0 on Windows allows a process with read access to strict-lock claims to cause StrictSoftFileLock.release() to fail. A published claim can continue blocking later acquisitions after the reader closes its handle. The issue is fixed in version 4.3.0.
- CVE-2026-144403Low
filelock before 4.3.0 on POSIX allows a StrictSoftFileLock holder and a soft-lock client using the same path to both enter their critical sections if another account owns the sentinel in a shared sticky directory. This compromises mutual exclusion during mixed-client migration. The issue is fixed in version 4.3.0.
- CVE-2026-144395Medium
filelock before 4.3.0 on POSIX allows another account with rename access in a shared non-sticky lock directory to redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The issue is fixed in version 4.3.0.
- CVE-2026-144394Low
filelock before 4.3.0 on Linux allows two processes to both hold a SoftReadWriteLock write lock after its protocol directory is removed while a lock instance remains alive. This requires another account able to replace directories in the shared location and filesystem reuse of a previously trusted inode number. The issue is fixed in version 4.3.0.
- CVE-2026-144393Low
filelock before 4.3.0 on POSIX allows SoftReadWriteLock to accept a protocol directory whose owner it trusts but whose permissions allow another account to write. In a shared sticky lock location, an account controlling such a directory can cause two processes to hold write locks concurrently without a compromise notification. The issue is fixed in version 4.3.0.
- CVE-2026-144392Low
filelock before 4.3.0 on Windows allows a local account with read access to an idle StrictSoftFileLock sentinel to delay acquisition beyond the requested timeout. A Windows opportunistic lock (oplock) on the sentinel can keep the caller's thread waiting inside the operating system, including during a nonblocking acquisition. The issue is fixed in version 4.3.0.
- CVE-2026-144391Low
In filelock before version 4.3.0 on POSIX, a new StrictSoftFileLock sentinel can inherit group or other write permission. An account with that access can modify the sentinel so that a SoftFileLock client enters the protected section while the strict lock remains held. This affects applications sharing a path between strict and legacy soft locks.
- CVE-2026-144389Low
In filelock before version 4.3.0 on Windows, a local account with read access to a stale soft-lock marker can delay recovery beyond the caller's acquisition timeout. This affects SoftFileLock, MarkerSoftFileLock and SoftFileLease when another process holds a read-handle opportunistic lock on the stale marker. The delay is caused by a Windows opportunistic lock (oplock).
- CVE-2026-144388Low
In filelock for Python prior to 4.3.0, on Unix, temporary-directory exhaustion during filelock import can disable a safeguard in StrictSoftFileLock publication. A local account with rename access to entries in a shared, non-sticky lock directory can gain read access to a file on the same filesystem.
- CVE-2026-144387Low
In filelock for Python prior to 4.3.0, an account with write access to a SoftReadWriteLock generation directory can keep an acquisition scanning beyond its timeout and consume CPU. The overrun was confirmed during write acquisition.
- CVE-2026-144386Low
In filelock for Python prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers; the overwrite was confirmed on ext4.
- CVE-2026-144385Low
In filelock for Python prior to 4.3.0, two ReadWriteLock callers can both enter write critical sections if another account can modify their shared SQLite lock database. The overlap can occur when the database changes to write-ahead logging (WAL) while acquisition is waiting.
- CVE-2026-144384Low
In filelock for Python prior to 4.3.0, on Linux, a soft lock can mistake a live holder for a stale one when the locking processes see a /proc mount from a different PID namespace. If the same numeric PID identifies an unrelated process in that namespace, changes to that process can allow two holders into the protected section at the same time.
- CVE-2026-144383Low
In filelock for Python prior to 4.3.0, an async lock can lose mutual exclusion after executor submission raises during release. A thread pool may already have queued the release; if the application reuses the same lock instance, that release can run during a later hold and allow another process to enter.
- CVE-2026-144382Low
In filelock for Python prior to 4.3.0, a Linux user namespace can report the same overflow UID for unrelated host accounts. When the namespace shares a sticky lock directory with the host, SoftReadWriteLock can accept another account's protocol tree as trusted and admit a reader while a writer holds the lock.
- CVE-2026-144381Low
In filelock prior to 4.3.0, StrictSoftFileLock can mistake an unrelated directory owned by the locking account for its coordination directory in a group-writable directory without the sticky bit. It can change that directory's permissions and create a claims directory inside it, disrupting access for other users.
- CVE-2026-144353Low
In filelock prior to 4.3.0, a ReadWriteLock database can retain an untrusted SQLite journal after its directory changes from shared to private. Opening the database can delete an unrelated file that the locking account has permission to read and remove; changing directory permissions does not remove existing journals.
- CVE-2026-144352Low
In filelock prior to 4.3.0, two ReadWriteLock callers can both acquire a write lock if the shared SQLite database advertises a write format that SQLite treats as read-only. This requires another account to have write access to the lock database.
- CVE-2026-144351Low
In filelock from 4.2.1 until 4.3.0, during stale-marker recovery, SoftFileLock can admit two holders when a foreign-owned recovery record can reach the public lock path and another account can create entries in a shared sticky lock directory. This requires a POSIX filesystem that supports atomic name exchange.
- CVE-2026-144350Low
In filelock from 4.2.1 until 4.3.0, on POSIX filesystems with atomic name exchange, SoftFileLock can misidentify an active recovery record as abandoned. If another local account can create markers in the shared sticky lock directory, racing recoveries can let two holders enter the same critical section.
- CVE-2026-144349Medium
In the filelock Python library from 4.2.1 until 4.3.0, on POSIX, ReadWriteLock can remove empty directories from an unrelated directory owned by the locking account. This requires a shared parent without the sticky bit where another local account can rename directories. The confirmed impact is confined to empty directories, and the issue is fixed in version 4.3.0.
- CVE-2026-144342Low
In filelock prior to 4.3.0, on Windows, a local account with read access to a shared strict-lock claims directory can delay a later StrictSoftFileLock acquisition beyond its timeout. This requires an aged private record left by an interrupted acquisition; the observed effect was a delayed acquisition.
- CVE-2026-144341Low
In filelock prior to 4.3.0, on Windows, another local account with read access to a SQLite lock database can delay cancellation of an AsyncReadWriteLock acquisition. The task and application shutdown can wait past the task deadline, up to the lock's own timeout; the delay is caused by a Windows opportunistic lock (oplock).
- CVE-2026-144340Medium
In the filelock Python library prior to 4.3.0, concurrent AsyncSoftReadWriteLock waits could occupy every worker in the default executor and delay the release of an unrelated private lock in the same process. This requires enough simultaneous waits and a workload that uses lock paths another account can influence, such as a group-writable, non-sticky directory. The issue is fixed in version 4.3.0.
- CVE-2026-144339Low
In filelock prior to 4.3.0, on Windows, a local account with read access to a native lock file can delay a nonblocking or short-timeout FileLock acquisition. With AsyncFileLock(run_in_executor=False), the delay also blocks unrelated tasks on the event loop; the delay is caused by a Windows opportunistic lock (oplock).
- CVE-2026-144338Low
In filelock prior to 4.3.0, on POSIX, another account with write access to the parent directory of a SQLite lock database can make ReadWriteLock initialization and acquisition run past their requested timeout, even when the lock is free. AsyncReadWriteLock constructs the same backend on the event-loop thread, so a slow initialization can also delay other tasks.
- CVE-2026-144336Low
In filelock prior to 4.3.0, if another local account can create or modify a SQLite lock database, loading its schema can consume CPU past the acquisition timeout even when the lock is free. Both ReadWriteLock and AsyncReadWriteLock load the schema; tests confirmed a finite timeout overrun.
- CVE-2026-144335Medium
In the filelock Python library prior to 4.3.0, on POSIX, an AsyncReadWriteLock constructor failure could prevent a forked child from resetting unrelated locks, including locks in private directories. The process had to retain the failed construction and then fork. A local account able to populate an optional lock path could cause the initial failure. Overlapping holds were demonstrated only when the child reused an active SQLite lock before exec, an unsupported operation. The issue is fixed in version 4.3.0.
- CVE-2026-144334Medium
In the filelock Python library prior to 4.3.0, on Windows, a local account allowed to create drive-root directories can influence the owner identity recorded by SoftFileLock and MarkerSoftFileLock, including for locks in a private directory. If the holder dies, later processes can mistake the dead owner's marker for a remote hold and leave the lock unavailable. The issue is fixed in version 4.3.0.
- CVE-2026-144333Low
filelock before version 4.3.0 allows a local account that can write to a StrictSoftFileLock claims directory to crowd that directory with files. This can delay nonblocking and timed lock acquisitions and increase the caller's memory use, affecting availability of the shared lock. The issue is fixed in version 4.3.0.
- CVE-2026-112938Medium
In the filelock Python library from 3.30.0 until 4.2.1, on POSIX platforms StrictSoftFileLock and AsyncStrictSoftFileLock validate the coordination directory in _ensure_protocol_directory but later reach the claims directory through _open_directory by pathname, allowing a local account that can rename the coordination name to swap in a symbolic link between check and use. That race can create claim files in another writable directory or strand claims in a different strict lock so the second lock times out. Separately, the claims property and force_break follow a resting symbolic link, and a blind force_break recovery can allow two processes into another strict lock's critical section.
- CVE-2026-112913Low
In filelock for Python from 3.20.4 until 4.2.1, ReadWriteLock and AsyncReadWriteLock on Windows use _connect to attach SQLite to the lock database by pathname, allowing another local account to place a database-wal or database-journal side file before acquisition. An undeletable WAL file makes each read or write acquisition fail immediately with sqlite3.OperationalError regardless of timeout. Separately, a hot journal can cause SQLite recovery to delete a file named by that journal when the lock account has permission to delete the target. The issue requires a directory writable by another account, such as a shared Windows temporary directory, and does not affect private directories. It is fixed in version 4.2.1.
- CVE-2026-112910Medium
In the filelock Python library from 3.10.0 until 4.2.1, on Windows the mode argument is ignored for WindowsFileLock files and the ReadWriteLock SQLite database. A lock created with mode=0o600 receives the parent directory's inheritable ACL because _open_non_reparse_fd and _nt_open do not create an owner-only security descriptor. Another local account with inherited access can read holder metadata or the lock database, modify those files, or take the byte-range lock after release. UnixFileLock is not affected, and mutual exclusion between cooperating processes continues to hold.
- CVE-2026-112908Medium
In the filelock Python library from 3.30.0 until 4.2.1, StrictSoftFileLock and AsyncStrictSoftFileLock on POSIX systems create coordination and claim directories without applying the caller's restrictive lock mode. A permissive umask or inherited default ACL can leave these directories writable by another local user, allowing that user to delete an active holder's claims. Another authorized process can then acquire the lock while the original holder remains in its critical section, and an attacker can plant malformed claims to prevent acquisition.
- CVE-2026-112907Low
In filelock for Python from 3.22.0 until 4.2.1, soft lock classes on Windows read an existing marker with _read_lock_file and remove a stale marker through break_lock_file using pathname operations that wait for an oplock break. Another local account with read access to an unheld marker can keep a Level 1 or batch oplock unanswered, causing SoftFileLock.acquire and related async or fallback locks to wait beyond timeout, blocking=False, and cancel_check. A stale marker under the oplock cannot be broken, but mutual exclusion remains intact and no file other than the marker is accessed. It is fixed in version 4.2.1.
- CVE-2026-112941Low
In filelock from 4.1.0 until 4.2.1, SoftReadWriteLock and AsyncSoftReadWriteLock cache a successful check of the <path>.rw lock tree and resolve its names again during later record operations, allowing another local user who can replace that tree after the first acquisition to redirect lock-record writes into directories writable by the lock user.
- CVE-2026-112940High
In filelock from 3.20.4 until 4.2.1, ReadWriteLock let SQLite reopen the database and side files by name. On POSIX systems an attacker with rename access in a non-sticky parent can swap those names to cause overwrite or unlink operations; a writable adjacent hot journal is additionally required for attacker-chosen content overwrites.
- CVE-2026-112939Medium
In filelock from 3.22.0 until 4.2.1, SoftFileLock trusted a forged process identifier in a marker that an attacker could modify but not remove. This allowed an authorized contender such as another process of the holder's account or root to act as a confused deputy, remove the live marker, and admit another holder.
- CVE-2026-112937Medium
In filelock from 4.1.0 until 4.2.1, ReadWriteLock could remove a randomized .filelock-* private-hard-link directory during cleanup. Another local user with rename access in a non-sticky parent could observe a live name or forge a dead-owner sweep name and rename a sibling directory onto it for deletion.
- CVE-2026-112936Medium
In filelock from 3.20.4 until 4.0.9, ReadWriteLock and AsyncReadWriteLock resolved the lock path and passed it to SQLite without rejecting a final symbolic link. Another local user who can create names in the lock directory could redirect database creation and locking or split mutual exclusion between targets.
- CVE-2026-112935Medium
In filelock from 3.22.0 until 4.2.1, SoftFileLock could break a stale marker after an attacker freed its own marker following the stale read, an honest contender created a live successor on the reused inode, and the successor's modification time was not newer than the saved observation, causing the live marker to be removed and two holders to be admitted.
- CVE-2026-112934Medium
In filelock from 4.0.0 until 4.2.1, SoftReadWriteLock refreshed holder records by name. Another local user with rename access to the lock directory could replace a record with a named pipe and stall the lock, or under a permissive hard-link policy link a reachable target file and cause the lock user to write through it.
- CVE-2026-112915Medium
In filelock from 3.20.4 until 4.2.1, ReadWriteLock could open a crafted SQLite lock database without bounding schema and query work. Another local user who can replace the database could make acquisition stall or hang.
- CVE-2026-112914Medium
In filelock from 4.1.0 until 4.2.1, SoftFileLock could restore a stale marker by name after moving it aside. Another local user with rename access in a non-sticky lock directory could swap in a symbolic link and, on a runtime that follows the link and a same-filesystem target, make the lock user hard-link one of its files into the lock directory.
- CVE-2026-112912Low
In filelock from 3.32.6 until 4.2.1, SoftFileLock can follow a swapped symbolic link during the conditional os.access writability check for a node without its owner-write bit, allowing another local user on a platform and directory configuration that follows the link to infer whether a chosen path exists and is writable from the observable acquisition result.
- CVE-2026-112911Medium
In filelock from 3.30.0 until 4.2.1, StrictSoftFileLock (from 3.30.0) and SoftReadWriteLock (from 4.0.0) could adopt a protocol directory created first by another local user in a shared parent directory. This allowed that user to alter protocol state and admit concurrent holders.
- CVE-2026-112909Medium
filelock before 4.2.1 has a vulnerability in UnixFileLock that can truncate a regular file renamed onto the lock path when another local user has rename permission or hard-linked there under a permissive policy. When an explicit mode is requested, versions from 3.10.2 can also change that file's mode.
- CVE-2026-112906Medium
filelock from 4.1.0 to 4.2.1 has a vulnerability in SoftFileLock that can reuse a stale observation when an attacker pre-dates and removes its own marker, at least two lock-user processes are waiting, and coarse or matching modification times preserve the observation. This can cause a live marker to be removed as stale.
- CVE-2026-22701Medium
filelock for Python versions prior to 3.20.3 contain a TOCTOU race condition vulnerability in the SoftFileLock implementation. An attacker with local filesystem access and permission to create symlinks can exploit a race condition between permission validation and file creation to cause lock operations to fail or behave unexpectedly. This issue has been patched in version 3.20.3.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

