PyPI: filelock

CVE-2026-112915

Safety vulnerability ID: SFTY-20261020-18367

Affected versions of the `filelock` package are vulnerable to Allocation of Resources Without Limits or Throttling due to opening a SQLite lock database without bounding schema and query work. `ReadWriteLock` opens its SQLite database without limiting the work a crafted schema or query can force, on the first opening of each instance from 3.20.4 and on every acquisition from 3.30.0. A local attacker who can replace the lock database with a crafted file can make lock acquisition stall or hang, blocking every process that relies on the lock.

Created at: Oct 26, 2026Updated at: Oct 26, 2026

Overview

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

Advisory

filelock – Allocation of Resources Without Limits or Throttling

Affected Package

Affecting filelock package, versions>=3.20.4,<=4.2.0

Also affects

---

How to Fix

Upgradefilelockto4.2.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more