filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker
影響: pip:filelock >= 3.32.6, <= 4.2.0 → 4.2.1
raise_on_not_writable_file() is the check that SoftFileLock and the locks sharing its acquire path run before every attempt. It looks at the lock path with os.lstat, so that it judges a planted symlink (a file that points at another path) by itself. When the node has no owner-write bit, it then calls os.access(filename, os.W_OK), which follows symlinks. A local user who can create entries in the lock's directory can swap the path between a mode-0466 file and a symlink to a path of their choosin…
| CVE | CVE-2026-112912 |
|---|---|
| 情報源 | GitHub Advisory Database |
| 取得日時 | 2026/10/29 09:48 |
| データ | Markdown JSON |
2026/10/29 06:08、GitHub Advisory Databaseが「filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「注意」(low) です。関連する技術: Python。CVE: CVE-2026-112912。