filelock

A platform independent file lock.

4.3.2Latest, 27 Nov 2026
639MDownloads, last month
0Advisories on the latest
22Advisories, all versions
MITLicence
991Stars

Known advisories

Severity Advisory Fix Published
Moderate filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold CVE-2026-112908 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path CVE-2026-112909 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL CVE-2026-112910 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusion CVE-2026-112911 Fixed in 4.2.1 28 Oct 2026
Low filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker CVE-2026-112912 Fixed in 4.2.1 28 Oct 2026
Moderate filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout CVE-2026-112915 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: SoftReadWriteLock holder refresh writes through a hard link and hangs on a named pipe that another local user renames over its record CVE-2026-112934 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: SoftFileLock stale-lock break removes a live lock file on a reused inode number and admits two holders CVE-2026-112935 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: ReadWriteLock follows a symlink at the lock path into SQLite CVE-2026-112936 Fixed in 4.0.9 28 Oct 2026
Moderate filelock: StrictSoftFileLock follows a symbolic link swapped in at <path>.filelock and creates claim files in a directory another local user chooses CVE-2026-112938 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable marker CVE-2026-112939 Fixed in 4.2.1 28 Oct 2026
Low filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lock CVE-2026-112941 Fixed in 4.2.1 28 Oct 2026
Moderate filelock: SoftFileLock evicts a fresh lock file whose watched age another local user's pre-dated file passed on through inode reuse CVE-2026-112906 Fixed in 4.2.1 23 Oct 2026
Low filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break CVE-2026-112907 Fixed in 4.2.1 23 Oct 2026
Low filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database CVE-2026-112913 Fixed in 4.2.1 23 Oct 2026

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.