CVE-2026-144394: filelock: SoftReadWriteLock admits overlapping writers after directory inode reuse

Published Dec 3, 2026
·
Updated

filelock is a platform-independent file lock for Python. Prior to 4.3.0, on Linux, two processes can both hold a SoftReadWriteLock write lock after its protocol directory is removed while a lock instance remains alive. This requires another account able to replace directories in the shared location and filesystem reuse of a previously trusted inode number. The overlap was confirmed on ext4, without a compromise notification. 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 to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.3.0

Event History

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

Frequently Asked Questions

1

Which deployments are realistically exposed?

The issue applies to filelock versions before 4.3.0 on Linux when using SoftReadWriteLock. Exploitation also depends on a shared location where another account can replace directories and where filesystem inode reuse occurs; the overlap was confirmed on ext4.

2

What must an attacker or competing local user be able to do?

They need an account capable of replacing directories in the shared lock location while a lock instance remains alive. The filesystem must then reuse an inode number that was previously trusted by the lock protocol.

3

How can this be remediated?

Upgrade filelock to version 4.3.0 or later. If upgrading cannot occur immediately, restrict directory replacement privileges in the shared lock location to prevent another account from manipulating the lock protocol directory.

4

Is there a notification when the lock overlap occurs?

No compromise notification was observed in the confirmed ext4 scenario. Do not rely on the lock implementation to alert you if overlapping writers have already occurred.

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