PyPI
CVE-2026-112915
filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout
- Severity
- Medium 5.5
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 4.2.1
- Exploit chance
- 0.2% in the next 30 daysHigher than 12% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Needs local access · Needs a user account · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-cwqr-hh33-gh44
- Sources
- OSV.dev and GitHub
Description
ReadWriteLock and AsyncReadWriteLock (the SQLite-backed reader/writer lock) run PRAGMA journal_mode=MEMORY on a fresh connection for every acquire. That statement makes SQLite load the whole schema (the sqlite_master table, which lists every table and index with its CREATE text) of whatever file sits at the lock path. The caller's timeout reaches SQLite only as busy_timeout, which bounds waits for another connection's lock, not schema loading. The only content checks reject non-regular files and WAL mode (write-ahead log, an SQLite mode that keeps changes in a side file). A local user who can place or overwrite the file at a ReadWriteLock's database path can therefore make every acquire_read / acquire_write of every process using that lock ignore its timeout and blocking=False. That position needs a non-sticky shared directory, or a database owned by the user running the lock (below: the lock user) that other users may write.
Affected software
| Software | Affected versions |
|---|---|
filelockPyPI · osv:PyPI:filelock |
|
About filelock
- Weekly downloads (PyPI)
- 151,687,068PyPI Stats, 23 Nov 2026
Vulnerabilities in filelock
- In our list
- 12
- Published in the last 12 months
- 12
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-112941filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lockLow 3.3 28 Oct 2026
- CVE-2026-112908filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live holdMedium 5.3 28 Oct 2026
- CVE-2026-112911filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusionMedium 6.3 28 Oct 2026
- CVE-2026-112910filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACLMedium 5.3 28 Oct 2026
- CVE-2026-112939filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable markerMedium 4.7 28 Oct 2026
- CVE-2026-112912filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock takerLow 2.5 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-112915
- GitHub Advisory Database https://github.com/advisories/GHSA-cwqr-hh33-gh44