{"id":"CVE-2026-35356","aliases":["GHSA-gwm6-q8ch-hcfr"],"url":"https://o3.security/vulnerability/CVE-2026-35356","summary":"uutils coreutils install Arbitrary File Overwrite with -D via Path Component Symlink Race","details":"The `-D` path runs `fs::create_dir_all` on a pathname then later opens the destination via path-based `File::create`/`fs::copy`, neither anchored to a directory fd. Between the two, an attacker can replace a path component with a symlink, redirecting the write.\n\n**Impact:** an attacker with concurrent write access to the destination tree can redirect a privileged `install -D` to an arbitrary location, enabling arbitrary file overwrite with attacker-controlled content. Recommendation: use dirfd-based traversal (`openat`/`mkdirat` + `O_NOFOLLOW`) per component and create the destination via `openat` on the same dirfd.\n\n**Remediation:** Acknowledged by Canonical; fixed in commit 0c412999.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.51. Credit: Zellic._","published":"2026-04-22T16:08:17.812Z","modified":"2026-08-12T03:51:11.679637896Z","cvss":{"score":6.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H"},"epss":{"score":0.00108,"percentile":0.01324,"asOf":"2026-09-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"uu_install","fixedVersion":"0.7.0"}],"fix":{"url":"https://github.com/uutils/coreutils/pull/10140","label":"uutils/coreutils#10140"},"references":[{"type":"WEB","url":"https://github.com/uutils"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35356.json"},{"type":"ADVISORY","url":"https://github.com/uutils/coreutils/releases/tag/0.7.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35356"},{"type":"FIX","url":"https://github.com/uutils/coreutils/pull/10140"},{"type":"PACKAGE","url":"https://github.com/uutils/coreutils"},{"type":"WEB","url":"https://github.com/uutils/coreutils/security/advisories/GHSA-gwm6-q8ch-hcfr"},{"type":"WEB","url":"https://github.com/uutils/coreutils/commit/0c41299975f3c1e21cf5ca968d42cad55ceb42a1"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:11.679637896Z"}}