MEDIUM · CVSS 3.1 6.3 EPSS 0.1% · 0th percentile CWE-367CWE-59

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorLocal
Attack complexityHigh
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityHigh
AvailabilityHigh

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
`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 against TOCTOU target swaps. --- _Zellic private finding (zellic-ext/coreutils-private PR #119). Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._

References

Source records: GHSA-fjjq-8hw5-cf9f (OSV.dev) · EPSS by FIRST, 2026-11-21.