PyPI (Python)Worst: High20 advisories
filelock: known vulnerabilities
filelock has 20 reviewed security advisories in the GitHub Advisory Database — 1 high, 15 moderate, 4 low. The most recent was published 2026-10-28. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the filelock versions running across your servers, containers and images, and ranks what to patch first.
How to fix filelock
Upgrade filelock to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade filelock (pin filelock>=4.2.1)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (20)
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
Moderate 5.3 CWE-732
— Affected: from 3.30.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-28. GHSA-6627-m3xw-93mp · CVE-2026-112908
filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
Moderate 5.3 CWE-732
— Affected: from 3.10.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-28. GHSA-8mx5-7m5m-r77g · CVE-2026-112910
filelock: StrictSoftFileLock follows a symbolic link swapped in at <path>.filelock and creates claim files in a directory another local user chooses
Moderate 5.8 CWE-363
— Affected: from 3.30.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-28. GHSA-m462-7rxw-wvpg · CVE-2026-112938
filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break
Low 2.5 CWE-667
— Affected: from 3.22.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-23. GHSA-567q-5qvw-pf92 · CVE-2026-112907
filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database
Low 3.3 CWE-367
— Affected: from 3.20.4 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-23. GHSA-9vhv-jxww-xfm5 · CVE-2026-112913
filelock: SoftFileLock evicts a fresh lock file whose watched age another local user's pre-dated file passed on through inode reuse
Moderate 4.7 CWE-694
— Affected: from 4.1.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-2g95-wg33-c5x2 · CVE-2026-112906
filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path
Moderate 6.1 CWE-706
— Affected: before 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-69hj-f68j-2879 · CVE-2026-112909
filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusion
Moderate 6.3 CWE-283
— Affected: from 3.30.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-9c4x-gm8v-wgc4 · CVE-2026-112911
filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker
Low 2.5 CWE-59
— Affected: from 3.32.6 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-9j6q-wvj5-jgjg · CVE-2026-112912
filelock: SoftFileLock stale-break restore follows a swapped-in symbolic link and hard-links a file of the user running the lock into the lock directory
Moderate 5.3 CWE-363 CWE-59
— Affected: from 4.1.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-crv4-6mhj-j5jh · CVE-2026-112914
filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout
Moderate 5.5 CWE-400
— Affected: from 3.20.4 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-cwqr-hh33-gh44 · CVE-2026-112915
filelock: SoftReadWriteLock holder refresh writes through a hard link and hangs on a named pipe that another local user renames over its record
Moderate 6.1 CWE-62
— Affected: from 4.0.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-fj95-fr6c-h845 · CVE-2026-112934
filelock: SoftFileLock stale-lock break removes a live lock file on a reused inode number and admits two holders
Moderate 4.7 CWE-367
— Affected: from 3.22.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-fq56-3cx3-fjxp · CVE-2026-112935
filelock: ReadWriteLock follows a symlink at the lock path into SQLite
Moderate 6.1 CWE-59 CWE-668
— Affected: from 3.20.4 up to 4.0.9. Fixed in 4.0.9. Published 2026-10-20. GHSA-j8f7-rjxc-mr56 · CVE-2026-112936
filelock: ReadWriteLock on the hard-link route deletes any directory another user renames onto its .filelock-* link directory name
Moderate 6.1 CWE-367
— Affected: from 4.1.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-jqc4-5cvw-7w85 · CVE-2026-112937
filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable marker
Moderate 4.7 CWE-345
— Affected: from 3.22.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-rfpc-qcw5-3pc4 · CVE-2026-112939
filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files
High 7.1 CWE-363 CWE-59
— Affected: from 3.20.4 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-v4x8-3wr5-3wq8 · CVE-2026-112940
filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lock
Low 3.3 CWE-367
— Affected: from 4.1.0 up to 4.2.1. Fixed in 4.2.1. Published 2026-10-20. GHSA-wfhq-q4j2-c37m · CVE-2026-112941
filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
Moderate 5.3 CWE-362 CWE-367 CWE-59
— Affected: before 3.20.3. Fixed in 3.20.3. Published 2026-01-10. GHSA-qmgc-5h2g-mvrw · CVE-2026-22701
filelock has a TOCTOU race condition which allows symlink attacks during lock file creation
Moderate 6.3 CWE-362 CWE-367 CWE-59
— Affected: before 3.20.1. Fixed in 3.20.1. Published 2025-12-16. GHSA-w853-jp5j-5j7f · CVE-2025-68146
Find filelock across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.