filelock is vulnerable to Race Condition
33
Low Risk
Affected versions of this package are vulnerable to a race condition during lock acquisition on certain filesystems. On network-mounted or user-space filesystems such as FUSE or NFS where os.open(O_CREAT) is not atomic, a competing process's removal of a lock file between the lookup and create steps can trigger a FileNotFoundError and cause lock acquisition to fail unexpectedly. This condition can lead to denial-of-service or other contention failures in applications relying on file locking across distributed nodes. The issue is fixed by catching transient FileNotFoundError errors during lock creation and retrying gracefully, ensuring reliable lock acquisition under concurrent contention on affected filesystems.
You are affected if you are using a version that falls within the vulnerable range.
filelock is vulnerable to Race Condition in versions 3.21.0 - 3.24.2.
Upgrade the filelock library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant