{"id":"CVE-2026-112941","summary":"filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lock","details":"filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, SoftReadWriteLock and AsyncSoftReadWriteLock cache a successful check of the \u003cpath\u003e.rw lock tree and resolve its names again during later record operations, allowing another local user who can replace that tree after the first acquisition to redirect lock-record writes into directories writable by the lock user. This issue is fixed in version 4.2.1.","aliases":["GHSA-wfhq-q4j2-c37m"],"modified":"2026-10-22T02:49:06.387458394Z","published":"2026-10-20T14:43:18.060Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112941.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-367"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112941.json"},{"type":"FIX","url":"https://github.com/tox-dev/filelock/commit/bfa066d65a1ba9106f86ee9d027f7588b9c77e03"},{"type":"FIX","url":"https://github.com/tox-dev/filelock/pull/842"},{"type":"WEB","url":"https://github.com/tox-dev/filelock/releases/tag/4.2.1"},{"type":"ADVISORY","url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-wfhq-q4j2-c37m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112941"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tox-dev/filelock","events":[{"introduced":"6c0ecc28f898f08cd0438cd489c3eaabad79a4b7"},{"fixed":"60331bb89f325020b48bc51bde904c6446384e4a"},{"fixed":"bfa066d65a1ba9106f86ee9d027f7588b9c77e03"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"4.1.0"},{"fixed":"4.2.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"bfa066d65a1ba9106f86ee9d027f7588b9c77e03"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"60331bb89f325020b48bc51bde904c6446384e4a"}],"source":"REFERENCES_TAG","original_tag":"4.2.1"}]}}],"versions":["4.2.0","4.1.2","4.1.1","4.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-112941.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"}]}