{"id":"GHSA-jcf5-mpj4-xfg8","summary":"filelock: ReadWriteLock can remove unrelated empty directories","details":"## Impact\n\nOn POSIX, `ReadWriteLock` can remove empty directories from an unrelated directory owned by the locking account. This requires a shared parent without the sticky bit where another local account can rename directories. The confirmed impact is confined to empty directories.\n\n## Affected versions and fix\n\nVersions 4.2.1 through 4.2.12 are affected. Upgrade to filelock `4.3.0` or later. Cleanup verifies that it removed a link to the lock database before removing directories. An interrupted acquisition can leave an empty directory behind without blocking future acquisitions. [PR #973](https://github.com/tox-dev/filelock/pull/973)\n\n## Workaround\n\nUse a parent directory where untrusted accounts cannot rename entries.\n\n## Credits\n\nReported by OSS Scanner (ANT-2026-KHP4PR98).","aliases":["CVE-2026-144349"],"modified":"2026-12-05T18:48:25.035075744Z","published":"2026-12-04T21:37:56Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-12-04T21:37:56Z","nvd_published_at":"2026-12-03T19:17:32Z","cwe_ids":["CWE-610"]},"references":[{"type":"WEB","url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-jcf5-mpj4-xfg8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144349"},{"type":"WEB","url":"https://github.com/tox-dev/filelock/pull/973"},{"type":"WEB","url":"https://github.com/tox-dev/filelock/commit/f000cc7dc095718273ae26c959072c0d9a50ff7d"},{"type":"PACKAGE","url":"https://github.com/tox-dev/filelock"},{"type":"WEB","url":"https://github.com/tox-dev/filelock/releases/tag/4.3.0"}],"affected":[{"package":{"name":"filelock","ecosystem":"PyPI","purl":"pkg:pypi/filelock"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.1"},{"fixed":"4.3.0"}]}],"versions":["4.2.1","4.2.10","4.2.11","4.2.12","4.2.2","4.2.3","4.2.4","4.2.5","4.2.6","4.2.7","4.2.8","4.2.9"],"database_specific":{"last_known_affected_version_range":"\u003c= 4.2.12","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-jcf5-mpj4-xfg8/GHSA-jcf5-mpj4-xfg8.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"}]}