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.