{"id":"CVE-2026-112940","summary":"filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files","details":"filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock let SQLite reopen the database and side files by name; on POSIX systems an attacker with rename access in a non-sticky parent can swap those names to cause overwrite or unlink operations, while a writable adjacent hot journal is additionally required for attacker-chosen content overwrites. This issue is fixed in version 4.2.1.","aliases":["GHSA-v4x8-3wr5-3wq8"],"modified":"2026-10-24T02:47:35.341890982Z","published":"2026-10-20T14:41:49.555Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-363"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112940.json"},"references":[{"type":"WEB","url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112940.json"},{"type":"ADVISORY","url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112940"},{"type":"FIX","url":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d"},{"type":"FIX","url":"https://github.com/tox-dev/filelock/pull/834"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tox-dev/filelock","events":[{"introduced":"afa79d567faf98332ac5700fa670b3425a0cbc29"},{"fixed":"60331bb89f325020b48bc51bde904c6446384e4a"},{"fixed":"5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:tox-dev:filelock:*:*:*:*:*:python:*:*","range":[{"introduced":"3.20.4"},{"fixed":"4.2.1"}]},{"range":[{"fixed":"5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"60331bb89f325020b48bc51bde904c6446384e4a"}],"source":"REFERENCES_TAG","original_tag":"4.2.1"}]}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-112940.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"}]}