{"id":"CVE-2026-112937","published":"2026-10-20T14:36:28Z","modified":"2026-10-21T15:55:14Z","title":"filelock: ReadWriteLock on the hard-link route deletes any directory another user renames onto its .filelock-* link…","vendor":"tox-dev","product":"filelock","tier":"tail","description":{"text":"filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, ReadWriteLock can remove a randomized .filelock-* private-hard-link directory during cleanup, allowing another local user with rename access in a non-sticky parent to observe a live name or forge a dead-owner sweep name and rename a sibling directory onto it for deletion. This issue is fixed in version 4.2.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00135,"percentile":0.01472,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-jqc4-5cvw-7w85","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":4.6,"factors":[{"name":"EPSS percentile","points":0.29},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"tox-dev","affectedVersions":[{"vendor":"tox-dev","product":"filelock","versions":[">= 4.1.0, < 4.2.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-21T14:24:20.409806Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"filelock","vulnerableRanges":[">=4.1.0, <4.2.1"],"patched":["4.2.1"],"from":["GHSA-jqc4-5cvw-7w85"],"provenance":"source"}],"summary":{"text":"The flaw is in the ReadWriteLock component of the filelock Python library, where the hard-link route can remove a randomized .filelock-* private-hard-link directory during cleanup, a time-of-check to time-of-use race condition. An attacker who is a local user with rename access in a non-sticky parent directory can observe a live lock name or forge a dead-owner sweep name, then rename a sibling directory onto it so that the directory is deleted, requiring low privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:08Z"},"euvd":{"id":"EUVD-2026-105028","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tox-dev-filelock-cve-2026-112915","parents":[{"from":"CVE-2026-112936","to":"CVE-2026-112937","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__"]}]}]}}