{"id":"CVE-2026-112940","sourceIdentifier":"security-advisories@github.com","published":"2026-10-20T15:17:16.827","lastModified":"2026-10-22T22:18:02.827","vulnStatus":"Modified","cveTags":[],"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":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"tox-dev","product":"filelock","versions":[{"version":">= 3.20.4, < 4.2.1","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-22T21:29:06.989000Z","id":"CVE-2026-112940","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-363"}]},{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-59"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:tox-dev:filelock:*:*:*:*:*:python:*:*","versionStartIncluding":"3.20.4","versionEndExcluding":"4.2.1","matchCriteriaId":"F5BD9CEB-E809-4F5B-9563-4552CDED5BBD"}]}]}],"references":[{"url":"https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/tox-dev/filelock/pull/834","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","source":"security-advisories@github.com","tags":["Exploit","Mitigation","Patch","Vendor Advisory"]},{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":["Exploit","Mitigation","Patch","Vendor Advisory"]}]}