Intel

AIKIDO-2026-10285

filelock is vulnerable to Race Condition

Race Condition Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 4, 2026

33

Low Risk

This Affects:

PYTHONfilelock
3.21.0 - 3.24.2
Fixed in 3.24.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

filelock is vulnerable to Race Condition in versions 3.21.0 - 3.24.2.

How to fix this

Upgrade the filelock library to the patch version.