CVE-2026-144386: filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse

Published Dec 3, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/filelock<4.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade filelock to a version that resolves this vulnerability.

    Fixed in 4.3.0

Event History

Dec 3, 2026
CVE Published
via MITRE·07:06 PM
Data Sourced
via MITRE·07:06 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed?

Deployments using filelock before 4.3.0 are exposed only where SoftReadWriteLock uses a shared directory in which another account can rename entries and the underlying filesystem reuses inode numbers. The overwrite was confirmed on ext4.

2

What access does an attacker need?

An attacker needs access to the shared directory sufficient to rename entries. Exploitation also depends on inode-number reuse by the filesystem and the SoftReadWriteLock heartbeat acting on the reused inode.

3

Is a default installation affected?

The issue is configuration-dependent rather than affecting every installation: it requires SoftReadWriteLock, a shared directory writable or mutable by another account, and a filesystem that reuses inode numbers.

4

What should be done if upgrading is not immediately possible?

Restrict the lock directory so other accounts cannot rename its entries, or move lock files to a directory not shared with untrusted accounts. Upgrade filelock to 4.3.0 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203