{"id":"CVE-2026-35355","aliases":["CVE-2026-35355","GHSA-239g-2685-54x3"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils install Arbitrary File Overwrite via Symlink TOCTOU Race","summary":"The install utility in uutils coreutils is vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition during file installation. The implementation unlinks an existing destination file and then recreates it using a path-based operation without the O_EXCL flag. A local attacker can exploit the window between the unlink and the subsequent creation to swap the path with a symbolic link, allowing them to redirect privileged writes to overwrite arbitrary system files.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The install utility in uutils coreutils is vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition during file installation. The implementation unlinks an existing destination file and then recreates it using a path-based operation without the O_EXCL flag. A local attacker can exploit the window between the unlink and the subsequent creation to swap the path with a symbolic link, allowing them to redirect privileged writes to overwrite arbitrary system files.","source":"cvelist"},{"lang":"en","text":"`copy_file` in `install/src/install.rs` removes the destination then recreates it by pathname via `File::create` / `fs::copy` without `O_EXCL`/`create_new`. Between the unlink and the recreate, a local attacker with write access to the destination directory can drop in a symlink and redirect the write.\n\n**Impact:** when `install` runs privileged into an attacker-writable directory (staging/build paths), the race allows redirecting writes to arbitrary files and overwriting sensitive system files (`/etc/passwd`, `/etc/shadow`). Recommendation: create atomically with `create_new`/`O_EXCL` and copy via the opened fd rather than reopening by path.\n\n**Remediation:** Acknowledged by Canonical; fixed in commit b5bbabc1.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.50. Credit: Zellic._","format":"markdown","source":"ghsa"},{"lang":"es","text":"La utilidad install en uutils coreutils es vulnerable a una condición de carrera de tipo Time-of-Check to Time-of-Use (TOCTOU) durante la instalación de archivos. La implementación desvincula un archivo de destino existente y luego lo recrea utilizando una operación basada en ruta sin la bandera O_EXCL. Un atacante local puede explotar la ventana entre la desvinculación y la creación subsiguiente para intercambiar la ruta con un enlace simbólico, permitiéndoles redirigir escrituras privilegiadas para sobrescribir archivos de sistema arbitrarios.","source":"nvd"}],"published":"2026-04-22T16:08:14.960Z","modified":"2026-10-26T21:10:00.170Z","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":[{"type":"semver","introduced":"0","fixed":"0.6.0","status":"affected"}],"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.6.0"}],"ecosystem":"crates.io","package":"uu_install","purl":"pkg:cargo/uu_install","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.6.0"}],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/pull/10067","tags":["exploit","issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/releases/tag/0.6.0","tags":["release-notes","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-239g-2685-54x3","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35355","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/commit/b5bbabc18a1121908848d836f869a4e98eb63886","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils","tags":["package"],"sources":["ghsa"]}],"credits":["Zellic"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-04-22T18:01:44.426Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35355","url":"https://www.cve.org/CVERecord?id=CVE-2026-35355","licence":"CVE Terms of Use","modified":"2026-04-22T18:01:47.122Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-239g-2685-54x3","url":"https://github.com/advisories/GHSA-239g-2685-54x3","licence":"CC-BY-4.0","modified":"2026-07-06T20:11:15.725Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35355","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35355","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:19.329Z","epss":{"score":0.00105,"percentile":0.01156,"date":"2026-12-01T12:00:22.000Z"}}