{"id":"CVE-2026-112940","state":"PUBLISHED","title":"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","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.","publishedAt":"2026-10-20T14:41:49.555Z","updatedAt":"2026-10-22T21:29:27.209Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["tox-dev filelock"],"affected":[{"vendor":"tox-dev","product":"filelock","versions":[{"version":">= 3.20.4, < 4.2.1","status":"affected"}]}],"references":["https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","https://github.com/tox-dev/filelock/pull/834","https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","https://github.com/tox-dev/filelock/releases/tag/4.2.1"],"weaknesses":["CWE-363"],"ingestedAt":"2026-10-29T20:10:43.281Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/112xxx/CVE-2026-112940.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-112940","state":"PUBLISHED","datePublished":"2026-10-20T14:41:49.555Z","dateUpdated":"2026-10-22T21:29:27.209Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-19T21:30:47.245Z"},"containers":{"cna":{"title":"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","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"tox-dev","product":"filelock","versions":[{"version":">= 3.20.4, < 4.2.1","status":"affected"}]}],"references":[{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","name":"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","name":"https://github.com/tox-dev/filelock/pull/834","tags":["x_refsource_MISC"]},{"url":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","name":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","tags":["x_refsource_MISC"]},{"url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1","name":"https://github.com/tox-dev/filelock/releases/tag/4.2.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-363","lang":"en","description":"CWE-363: Race Condition Enabling Link Following","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-20T14:41:49.555Z"},"source":{"advisory":"GHSA-v4x8-3wr5-3wq8","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-22T21:29:06.989000Z","id":"CVE-2026-112940","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-22T21:29:27.209Z"}}]}}}