{"id":"CVE-2026-35341","aliases":["CVE-2026-35341","GHSA-pmf6-rcx4-v53v"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils mkfifo Unauthorized Permission Change on Existing Files","summary":"A vulnerability in uutils coreutils mkfifo allows for the unauthorized modification of permissions on existing files. When mkfifo fails to create a FIFO because a file already exists at the target path, it fails to terminate the operation for that path and continues to execute a follow-up set_permissions call. This results in the existing file's permissions being changed to the default mode (often 644 after umask), potentially exposing sensitive files such as SSH private keys to other users on the system.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability in uutils coreutils mkfifo allows for the unauthorized modification of permissions on existing files. When mkfifo fails to create a FIFO because a file already exists at the target path, it fails to terminate the operation for that path and continues to execute a follow-up set_permissions call. This results in the existing file's permissions being changed to the default mode (often 644 after umask), potentially exposing sensitive files such as SSH private keys to other users on the system.","source":"cvelist"},{"lang":"en","text":"When `mkfifo()` fails (e.g. target already exists), the code shows an error but is missing a `continue;`, so it falls through to `fs::set_permissions` and changes the permissions of the pre-existing file to the default FIFO mode (`0o666` & umask -> `0644`).\n\n```\n$ touch secret; chmod 000 secret\n$ coreutils mkfifo secret fifo3 fifo4\nmkfifo: cannot create fifo 'secret': File exists\n$ ll secret      # uutils:\nprw-r--r-- secret   # changed to 644 (GNU leaves it 000)\n```\n\n**Impact:** an attacker (or user error) can relax permissions on sensitive owner-only files such as SSH private keys, exposing them to other users. Recommendation: add `continue;` after the error.\n\n**Remediation:** Acknowledged by Canonical; fixed in PR #10376.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.8. Credit: Zellic._\n\n_Upstream tracking issue: https://github.com/uutils/coreutils/issues/10020 · CVE-2026-35341_","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad en uutils coreutils mkfifo permite la modificación no autorizada de permisos en archivos existentes. Cuando mkfifo no logra crear un FIFO porque ya existe un archivo en la ruta de destino, no logra terminar la operación para esa ruta y continúa ejecutando una llamada set_permissions subsiguiente. Esto resulta en que los permisos del archivo existente sean cambiados al modo predeterminado (a menudo 644 después de umask), exponiendo potencialmente archivos sensibles como claves privadas SSH a otros usuarios en el sistema.","source":"nvd"}],"published":"2026-04-22T16:07:39.221Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-281","CWE-732"],"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.6.0"}],"ecosystem":"crates.io","package":"uu_mkfifo","purl":"pkg:cargo/uu_mkfifo","source":"ghsa"},{"ranges":[],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:-:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/issues/10020","tags":["exploit","issue-tracking","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-pmf6-rcx4-v53v","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35341","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/pull/10376","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":"total","date":"2026-04-24T03:55:23.826Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35341","url":"https://www.cve.org/CVERecord?id=CVE-2026-35341","licence":"CVE Terms of Use","modified":"2026-04-24T13:43:36.473Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pmf6-rcx4-v53v","url":"https://github.com/advisories/GHSA-pmf6-rcx4-v53v","licence":"CC-BY-4.0","modified":"2026-07-06T22:11:26.860Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35341","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35341","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.324Z","epss":{"score":0.00172,"percentile":0.06847,"date":"2026-12-02T12:00:21.000Z"}}