{"id":"CVE-2026-35374","aliases":["CVE-2026-35374","GHSA-fjjq-8hw5-cf9f"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils split Arbitrary File Truncation via Time-of-Check to Time-of-Use (TOCTOU) Race Condition","summary":"A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the split utility of uutils coreutils. The program attempts to prevent data loss by checking for identity between input and output files using their file paths before initiating the split operation. However, the utility subsequently opens the output file with truncation after this path-based validation is complete. A local attacker with write access to the directory can exploit this race window by manipulating mutable path components (e.g., swapping a path with a symbolic link). This can cause split to truncate and write to an unintended target file, potentially including the input file itself or other sensitive files accessible to the process, leading to permanent data loss.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the split utility of uutils coreutils. The program attempts to prevent data loss by checking for identity between input and output files using their file paths before initiating the split operation. However, the utility subsequently opens the output file with truncation after this path-based validation is complete. A local attacker with write access to the directory can exploit this race window by manipulating mutable path components (e.g., swapping a path with a symbolic link). This can cause split to truncate and write to an unintended target file, potentially including the input file itself or other sensitive files accessible to the process, leading to permanent data loss.","source":"cvelist"},{"lang":"en","text":"`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.\n\n**Fixed in 0.10.0** (PR #12565, commit 58040feb5c66fce588a7ffac299b3a23bd55cd81): the output open path is hardened against TOCTOU target swaps.\n\n---\n_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`._","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de tipo Time-of-Check to Time-of-Use (TOCTOU) existe en la utilidad ’split’ de uutils coreutils. El programa intenta prevenir la pérdida de datos al verificar la identidad entre los archivos de entrada y salida utilizando sus rutas de archivo antes de iniciar la operación de división. Sin embargo, la utilidad posteriormente abre el archivo de salida con truncamiento después de que esta validación basada en rutas esté completa. Un atacante local con acceso de escritura al directorio puede explotar esta ventana de carrera manipulando componentes de ruta mutables (p. ej., intercambiando una ruta con un enlace simbólico). Esto puede hacer que ’split’ trunque y escriba en un archivo de destino no deseado, potencialmente incluyendo el propio archivo de entrada u otros archivos sensibles accesibles al proceso, lo que lleva a una pérdida permanente de datos.","source":"nvd"}],"published":"2026-04-22T16:09:04.206Z","modified":"2026-11-20T16:45:08.002Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-59","CWE-367"],"affected":[{"ranges":[],"vendor":"Uutils","product":"coreutils","package":"coreutils","repo":"https://github.com/uutils/coreutils","platforms":["Linux","Unix","macOS"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.10.0"}],"ecosystem":"crates.io","package":"uu_split","purl":"pkg:cargo/uu_split","source":"ghsa"},{"ranges":[],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:-:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/pull/11401","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-fjjq-8hw5-cf9f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/pull/12565","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/commit/58040feb5c66fce588a7ffac299b3a23bd55cd81","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils","tags":["package"],"sources":["ghsa"]}],"credits":["Zellic"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-22T17:18:10.132Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35374","url":"https://www.cve.org/CVERecord?id=CVE-2026-35374","licence":"CVE Terms of Use","modified":"2026-04-22T17:19:14.972Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fjjq-8hw5-cf9f","url":"https://github.com/advisories/GHSA-fjjq-8hw5-cf9f","licence":"CC-BY-4.0","modified":"2026-11-20T16:45:08.002Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35374","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35374","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:19.337Z","epss":{"score":0.00093,"percentile":0.00593,"date":"2026-12-01T12:00:22.000Z"}}