{"id":"CVE-2026-112940","published":"2026-10-20T14:41:49Z","modified":"2026-10-22T21:29:27Z","title":"filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock…","vendor":"tox-dev","product":"filelock","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00154,"percentile":0.02358,"provenance":"source"},"cwes":[{"id":"CWE-363","name":"Race Condition Enabling Link Following"}],"references":[{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tox-dev/filelock/pull/834","tags":["x_refsource_MISC"]},{"url":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","tags":["x_refsource_MISC"]},{"url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":0.47},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"tox-dev","affectedVersions":[{"vendor":"tox-dev","product":"filelock","versions":[">= 3.20.4, < 4.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-22T21:29:06.989000Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"filelock","vulnerableRanges":[">=3.20.4, <4.2.1"],"patched":["4.2.1"],"from":["GHSA-v4x8-3wr5-3wq8"],"provenance":"source"}],"summary":{"text":"The filelock Python library's ReadWriteLock component, in versions from 3.20.4 up to but not including 4.2.1, reopens its SQLite lock database and side files by name, which creates a race-condition link-following flaw. An attacker with local access and low privileges, who can rename files in a non-sticky parent directory on a POSIX system, can swap those names to make the library overwrite or unlink arbitrary targets, and attacker-chosen content overwrites additionally require a writable adjacent hot journal and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:10Z"},"euvd":{"id":"EUVD-2026-105031","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tox-dev-filelock-cve-2026-112915","parents":[{"from":"CVE-2026-112936","to":"CVE-2026-112940","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/filelock/_read_write.py","src/filelock/_windows.py"],"commits":["https://github.com/tox-dev/filelock/commit/4d45e83caf7e31f9a12fb44526bdc07f70114f04","https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d"],"basis":"shared function","functions":["__init__"]}]}]}}