# GHSA-X3F4-G3Q6-F985: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse

- Database: GitHub
- Severity: CVSS 2.5 (Low)
- Published: 2026-11-22
- Modified: 2026-12-03

## Tracked as

- [CVE-2026-144386](https://cve.now/CVE-2026-144386.md): filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse

## Affected versions

- filelock (PyPI): 4.2.12

## Description

## Impact

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.

## Affected versions and fix

The confirmed affected version is 4.2.12. Upgrade to filelock `4.3.0` or later. The heartbeat verifies the holder token on the open descriptor before writing. A mismatch marks the hold as lost. The fix does not protect a lock directory that another account can replace. [PR #982](https://github.com/tox-dev/filelock/pull/982)

## Workaround

Keep the lock and its records in a directory where only trusted accounts can rename entries.

## Credits

Reported by OSS Scanner (ANT-2026-CC0VMGLC).

## References

- https://github.com/tox-dev/filelock/security/advisories/GHSA-x3f4-g3q6-f985

Page: https://cve.now/GHSA-X3F4-G3Q6-F985

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
