CVE-2026-35374: split: TOCTOU output-open allows truncating a swapped file
Published 2026-11-20 · Updated 2026-11-20 · Also known as GHSA-fjjq-8hw5-cf9f
Summary
The uu_split crate is vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition when opening output files. Developers using affected versions should update to version 0.10.0 or later to prevent unauthorized file truncation or modification.
Who is affected
The vulnerability exists because the utility validates file paths before opening them, creating a race window where a file can be swapped with another accessible file. An attacker can exploit this to trick the process into truncating or overwriting unintended files, including input files or sensitive system targets. This flaw affects users of the uu_split crate versions prior to 0.10.0.
Exploitability
The exploit requires local access and specific timing to win the race condition, as indicated by the High attack complexity in the CVSS vector. The current EPSS score is 0.001, and CISA has not identified this vulnerability in their Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the uu_split crate to version 0.10.0 or later.
- Review system audit logs for unauthorized file modification attempts by the split utility.
How to check your project
- Check Cargo.lock files or run 'cargo tree' to identify dependencies using uu_split versions earlier than 0.10.0.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | uu_split |
>= 0, < 0.10.0 | 0.10.0 | cargo update -p uu_split --precise 0.10.0 |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | High |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | High |
| Availability | High |
FAQ
What is the primary cause of the vulnerability?
The vulnerability is caused by a TOCTOU race condition where the file path is validated before the file is opened and truncated, rather than comparing inodes after the file is opened.
Is this vulnerability actively being exploited?
No, CISA has not listed this as a Known Exploited Vulnerability.
Does this affect the standard GNU split utility?
No, the vulnerability report explicitly notes that GNU split is not affected because it correctly opens the file and compares inodes before truncation.
Original advisory description
References
- WEB https://github.com/uutils/coreutils/security/advisories/GHSA-fjjq-8hw5-cf9f
- WEB https://github.com/uutils/coreutils/pull/11401
- WEB https://github.com/uutils/coreutils/pull/12565
- WEB https://github.com/uutils/coreutils/commit/58040feb5c66fce588a7ffac299b3a23bd55cd81
- PACKAGE https://github.com/uutils/coreutils
Source records: GHSA-fjjq-8hw5-cf9f (OSV.dev) · EPSS by FIRST, 2026-11-21.