CVE-2026-112915: filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout

Published Oct 20, 2026
·
Updated

filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock can open a crafted SQLite lock database without bounding schema and query work, allowing another local user who can replace the database to make acquisition stall or hang; versions from 3.20.4 expose this on initial per-instance opening, and versions from 3.30.0 repeat the exposure on every acquisition. This issue is fixed in version 4.2.1.

Affected Software

1 affected component
pypi/filelock>=3.20.4<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:28 PM
Data Sourced
via MITRE·02:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs local access and the ability to replace the SQLite lock database used by ReadWriteLock. The impact is denial of service: lock acquisition can stall or hang.

2

Are timeouts an effective mitigation?

No. A crafted lock database can cause acquisition to stall or hang regardless of the configured timeout.

3

Which usage patterns are exposed most often?

Versions 3.20.4 through before 4.2.1 are affected. In versions 3.20.4 through 3.29.x, exposure occurs when a ReadWriteLock instance initially opens its database; from 3.30.0, the exposure repeats on every acquisition.

4

What should be done if patching is possible?

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