{"schemaVersion":3,"id":"CVE-2026-112940","aliases":["DEBIAN-CVE-2026-112940"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-20T14:41:49.555Z","modified":"2026-10-20T14:41:49.555Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-363","name":"Race Condition Enabling Link Following","description":"The product checks the status of a file or directory before accessing it, which produces a race condition in which the file can be replaced with a link before the access is performed, causing the product to access the wrong file.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/363.html"}],"affected":[{"vendor":"debian","product":"python-filelock","name":"python-filelock","label":"python-filelock","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-filelock","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"tox-dev","product":"filelock","name":"filelock","label":"filelock","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.20.4, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.20.4, < 4.2.1","eol":null,"hubHref":"/vendor/tox-dev/filelock"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","label":"github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/tox-dev/filelock/pull/834","label":"github.com/tox-dev/filelock/pull/834","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","label":"github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1","label":"github.com/tox-dev/filelock/releases/tag/4.2.1","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-112940","label":"security-tracker.debian.org/tracker/CVE-2026-112940","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-20T14:41:49.555Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T02:19:33.766Z","stale":false,"partial":false}}