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 the foreign_owner function in src/filelock/_util.py, where 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, an attacker can supply a protocol tree owned by a different host account that matches the overflow UID, causing SoftReadWriteLock to accept it as trusted and admit a reader while a writer holds the lock, breaking mutual exclusion guarantees.
Use a lock directory with a verified, mapped owner where untrusted accounts cannot supply or replace the protocol tree.