Menu

CVE-2026-144385: CVE-2026-144385: TOCTOU Race Condition in filelock ReadWriteLock SQLite Backend
📰

CVE-2026-144385: CVE-2026-144385: TOCTOU Race Condition in filelock ReadWriteLock SQLite Backend

DEV Community: cybersecurity·CVE Reports·about 17 hours ago
#XNQWPRPu
#devtocybersecurity#devto#dev#filelock#lock
Long article (579 words) — no AI summary yet.
Reading 0:00
15s threshold

CVE-2026-144385: TOCTOU Race Condition in filelock ReadWriteLock SQLite Backend

Vulnerability ID: CVE-2026-144385

CVSS Score: 3.6

Published: 2026-12-04

A Time-of-Check Time-of-Use (TOCTOU) race condition exists in the ReadWriteLock and AsyncReadWriteLock implementations of the Python filelock package prior to version 4.3.0. The library relies on SQLite rollback journal mode to enforce inter-process mutual exclusion on lock files. While filelock performs a pre-connection header check to verify that the SQLite database is not operating in Write-Ahead Logging (WAL) mode, SQLite rereads the database header while waiting for a transaction lock. If a local process with write access to the lock file transitions the database to WAL mode during this waiting period, the mutual exclusion guarantees fail, allowing concurrent callers to acquire overlapping write locks.

TL;DR

Versions of the Python filelock library prior to 4.3.0 contain a local TOCTOU race condition (CWE-367) in the SQLite-backed ReadWriteLock.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.