{"id":2826,"cve":"CVE-2026-112913","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-112913\/","cwe":"CWE-367","cwe_number":367,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/367","cvss_score":3.3,"published":"2026-11-05","owasp":"A01 Broken Access Control","odc":"Timing\/Serialization","cdc":"Incorrect Check","category":"Configuration Issues","subcategory":"Local File Inclusion (LFI)","scope":"Local","impact":"Denial of Service (DoS)","summary":"SQLite file lock bypass via writable temp dir causing lock acquisition failures.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-112913\/","description":"filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock and AsyncReadWriteLock on Windows use _connect to attach SQLite to the lock database by pathname, allowing another local account that can create adjacent names to place a database-wal or database-journal side file before acquisition. An undeletable WAL file makes each read or write acquisition fail immediately with sqlite3.OperationalError regardless of timeout. Separately, when the database contains at least one table, a hot journal that grants the lock account modify rights can cause SQLite recovery to delete a file named by that journal only when the lock account has permission to delete the target. The issue requires a directory writable by another account, such as a shared Windows temporary directory, and does not affect private directories. This issue is fixed in version 4.2.1.","solution":"Upgrade\u202ffilelock to version\u202f4.2.1\u202for newer.","affected_component":"filelock","fixed_by_upgrading":true,"vulnerable_code":"import os\nimport tempfile\nfrom filelock import ReadWriteLock\n\ndef acquire_shared_lock():\n    # VULNERABLE: using a lock file in a world\u2011writable temp directory\n    lock_path = os.path.join(tempfile.gettempdir(), \"myapp.lock\")\n    rw_lock = ReadWriteLock(lock_path)\n    with rw_lock.read_lock():\n        # Placeholder for read\u2011only operation\n        pass\n","patched_code":"import os\nimport tempfile\nfrom filelock import ReadWriteLock\n\ndef acquire_shared_lock():\n    # FIX: place lock file in a private per\u2011user directory\n    user_dir = os.path.join(tempfile.gettempdir(), f\"myapp_{os.getuid()}\")\n    os.makedirs(user_dir, exist_ok=True)\n    lock_path = os.path.join(user_dir, \"myapp.lock\")\n    rw_lock = ReadWriteLock(lock_path)\n    with rw_lock.read_lock():\n        # Placeholder for read\u2011only operation\n        pass\n","payload_needed":false,"payload":null,"payload_status":"none","published_fix":[{"repository":"tox-dev\/filelock","commit_url":"https:\/\/github.com\/tox-dev\/filelock\/commit\/1f582d02c7e5cb4aa7e41ddae211d32d31778f3b","commit_subject":"=?UTF-8?q?=F0=9F=90=9B=20fix(read-write):=20link=20privat?=","units":[{"file":"src\/filelock\/_api.py","function":"BaseFileLock.__init__"},{"file":"src\/filelock\/_read_write.py","function":null},{"file":"src\/filelock\/_read_write.py","function":"_connect"},{"file":"src\/filelock\/_read_write.py","function":"_remove_dead_links"},{"file":"src\/filelock\/_read_write.py","function":"_remove_link_directory"},{"file":"src\/filelock\/_windows.py","function":null}]},{"repository":"tox-dev\/filelock","commit_url":"https:\/\/github.com\/tox-dev\/filelock\/commit\/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","commit_subject":"=?UTF-8?q?=F0=9F=90=9B=20fix(read-write):=20keep=20SQLite?=","units":[{"file":"src\/filelock\/_read_write.py","function":null},{"file":"src\/filelock\/_read_write.py","function":"ReadWriteLock._configure_and_begin"},{"file":"src\/filelock\/_read_write.py","function":"_connect"},{"file":"src\/filelock\/_read_write.py","function":"_connect_through_descriptor"},{"file":"src\/filelock\/_read_write.py","function":"_ForkSafeConnection.close"},{"file":"src\/filelock\/_read_write.py","function":"_ForkSafeConnection.retain_until_close"},{"file":"src\/filelock\/_read_write.py","function":"_link_beside"},{"file":"src\/filelock\/_read_write.py","function":"_owner_is_gone"},{"file":"src\/filelock\/_read_write.py","function":"_ProbeDescriptors.adopt"},{"file":"src\/filelock\/_read_write.py","function":"_sweep_links_of_the_dead"},{"file":"src\/filelock\/_windows.py","function":null},{"file":"tasks\/capabilities.py","function":null},{"file":"tasks\/coverage_pragmas.py","function":null}]}],"references":null}