## split: TOCTOU output-open allows truncating a swapped file

- 種別: advisory
- 重大度: medium
- 関連技術: rust
- CVE: CVE-2026-35374
- 公開日時: 2026-11-20T16:33:27.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-fjjq-8hw5-cf9f)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-fjjq-8hw5-cf9f

影響: rust:uu_split <= 0.9.0 → 0.10.0
split checks input/output identity by path before opening the output, then opens with truncation, leaving a race window on mutable path components. GNU opens first and compares the opened output inode against the input before truncating. The race can cause split to truncate/write a file different from the one validated — including the input file or another file the process can access. Fixed in 0.10.0 (PR #12565, commit 58040feb5c66fce588a7ffac299b3a23bd55cd81): the output open path is hardened…