{"id":"CVE-2026-112940","published":"2026-10-20T15:17:16.827","lastModified":"2026-10-22T22:18:02.827","description":"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.","cvssScore":7.1,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","cwes":["CWE-363","CWE-59"],"vendors":["tox-dev"],"products":["filelock"],"references":[{"url":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","tags":["Patch"]},{"url":"https://github.com/tox-dev/filelock/pull/834","tags":["Patch"]},{"url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1","tags":["Release Notes"]},{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","tags":["Exploit","Mitigation","Patch","Vendor Advisory"]},{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","tags":["Exploit","Mitigation","Patch","Vendor Advisory"]}],"exploitRefs":[{"url":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","tags":["Patch"]},{"url":"https://github.com/tox-dev/filelock/pull/834","tags":["Patch"]},{"url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1","tags":["Release Notes"]},{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","tags":["Exploit","Mitigation","Patch","Vendor Advisory"]},{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","tags":["Exploit","Mitigation","Patch","Vendor Advisory"]}],"hasPoc":true,"ai":null}