CVE-2026-112911: filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusion

Published Oct 20, 2026
·
Updated

filelock is a platform-independent file lock for Python. From 3.30.0 until 4.2.1, StrictSoftFileLock versions from 3.30.0 and SoftReadWriteLock versions from 4.0.0 can adopt a protocol directory created first by another local user in a shared parent directory, allowing that user to alter protocol state and admit concurrent holders. This issue is fixed in version 4.2.1.

Affected Software

1 affected component
pypi/filelock>=3.30.0<4.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade filelock to a version that resolves this vulnerability.

    Fixed in 4.2.1

Event History

Oct 20, 2026
CVE Published
via MITRE·02:21 PM
Data Sourced
via MITRE·02:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments using StrictSoftFileLock from 3.30.0 through versions before 4.2.1, or SoftReadWriteLock from 4.0.0 through versions before 4.2.1, are exposed when their lock protocol directory is under a parent directory shared with another local user.

2

What does an attacker need to exploit it?

The attacker needs local access and the ability to create the protocol directory before the affected lock implementation does in a shared parent directory. They can then alter protocol state and cause concurrent lock holders to be admitted.

3

What is the impact if exploitation succeeds?

Mutual exclusion can be lost, allowing multiple holders to operate concurrently despite the lock. This can compromise integrity and availability of operations that rely on the lock for coordination.

4

What should be done if upgrading is not immediately possible?

Avoid placing the protocol directory in a parent directory writable by other local users. Ensure the directory is created and controlled only by the user or service using the lock.

5

How can I remediate the issue?

Upgrade filelock to version 4.2.1, which fixes the issue.

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