Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. uu_mkfifo
  4. ›
  5. CVE-2026-35341

CVE-2026-35341: mkfifo: permissions of an existing file are changed after FIFO creation fails

July 6, 2026

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).

$ touch secret; chmod 000 secret
$ coreutils mkfifo secret fifo3 fifo4
mkfifo: cannot create fifo 'secret': File exists
$ ll secret      # uutils:
prw-r--r-- secret   # changed to 644 (GNU leaves it 000)

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.

Remediation: Acknowledged by Canonical; fixed in PR #10376.


Reported by Zellic in the uutils coreutils Program Security Assessment (prepared for Canonical, Jan 20 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242. Finding 3.8. Credit: Zellic.

Upstream tracking issue: https://github.com/uutils/coreutils/issues/10020 · CVE-2026-35341

References

  • github.com/advisories/GHSA-pmf6-rcx4-v53v
  • github.com/uutils/coreutils/issues/10020
  • github.com/uutils/coreutils/pull/10376
  • github.com/uutils/coreutils/security/advisories/GHSA-pmf6-rcx4-v53v
  • nvd.nist.gov/vuln/detail/CVE-2026-35341

Code Behaviors & Features

Detect and mitigate CVE-2026-35341 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-281: Improper Preservation of Permissions
  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

cargo/uu_mkfifo/CVE-2026-35341.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 13 Jul 2026 00:19:37 +0000.