filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.
https://github.com/tox-dev/filelock/security/advisories/GHSA-x3f4-g3q6-f985
https://github.com/tox-dev/filelock/releases/tag/4.3.0
https://github.com/tox-dev/filelock/pull/982
https://github.com/tox-dev/filelock/commit/184931a64dd221e68f41586bcab91a2f9e59b419