CVE-2026-112936: filelock: ReadWriteLock follows a symlink at the lock path into SQLite

Published Oct 20, 2026
·
Updated

filelock is a platform-independent file lock for Python. From 3.20.4 until 4.0.9, ReadWriteLock and AsyncReadWriteLock versions from 3.20.4 resolve the lock path and pass it to SQLite without rejecting a final symbolic link, allowing another local user who can create names in the lock directory to redirect database creation and locking or split mutual exclusion between targets. This issue is fixed in version 4.0.9.

Affected Software

1 affected component
pypi/filelock>=3.20.4<4.0.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade filelock to a version that resolves this vulnerability.

    Fixed in 4.0.9

Event History

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

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using filelock ReadWriteLock or AsyncReadWriteLock on versions 3.20.4 through 4.0.8 are exposed when another local user can create entries in the directory containing the lock path. The issue concerns lock paths that can be replaced with a final symbolic link.

2

What must an attacker be able to do?

An attacker needs local access and the ability to create names in the lock directory. They can use a symbolic link at the lock path to redirect SQLite database creation and locking, potentially splitting mutual exclusion between different targets.

3

Are default filelock locks affected?

The provided information identifies ReadWriteLock and AsyncReadWriteLock specifically. It does not state that other filelock lock types are affected.

4

What should be done if the application cannot be upgraded immediately?

Ensure untrusted local users cannot create or replace names in directories used for ReadWriteLock or AsyncReadWriteLock lock files. Use lock directories whose ownership and permissions prevent symbolic-link creation by other users.

5

How can I determine whether my deployment is affected?

Check whether filelock is version 3.20.4 through 4.0.8 and whether the application uses ReadWriteLock or AsyncReadWriteLock. Also review whether other local users can create entries in the directory containing the configured lock path.

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