## filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path

- 種別: advisory
- 重大度: medium
- 関連技術: python
- CVE: CVE-2026-112909
- 公開日時: 2026-10-28T21:08:35.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-69hj-f68j-2879)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-69hj-f68j-2879

影響: pip:filelock <= 4.2.0 → 4.2.1
UnixFileLock, the backend of FileLock and AsyncFileLock on Unix, empties whatever regular file it finds at the lock path once it holds the flock (a kernel lock on an open file). With an explicit mode it also chmods that file (sets its permission bits), whether or not this acquire created it. Another local user who can rename or hard-link one of the files of the user running the lock (below: the lock user) onto the lock path gets that file truncated by the lock user's next acquire(). A hard link…