In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade filelock to version 4.3.0 or higher.
Affected versions of this package are vulnerable to Unverified Ownership via SoftReadWriteLock in _soft_rw/_storage.py, where the _admit method cached directory inode identities and skipped re-checking ownership on subsequent opens. On Linux, if the protocol directory is removed while a lock instance remains alive, the freed inode number can be reused by a directory planted by another account, causing two processes to simultaneously hold a write lock. An attacker with a separate account able to replace directories in the shared lock location can exploit filesystem inode reuse to bypass the mutual-exclusion guarantee without any notification to the affected processes.
Note: This is only exploitable on Linux when another account can replace directories in the shared lock location and the filesystem reuses a previously trusted inode number (confirmed on ext4).