Skip to main content
← All vulnerabilities
CVE-2026-35342GHSA-2W8R-9XJ7-69J5

uutils coreutils mktemp Insecure Temporary File Placement via Empty TMPDIR

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.6.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

The mktemp utility in uutils coreutils fails to properly handle an empty TMPDIR environment variable. Unlike GNU mktemp, which falls back to /tmp when TMPDIR is an empty string, the uutils implementation treats the empty string as a valid path. This causes temporary files to be created in the current working directory (CWD) instead of the intended secure temporary directory. If the CWD is more permissive or accessible to other users than /tmp, it may lead to unintended information disclosure or unauthorized access to temporary data.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • coreutils

    fixed in 0.6.0

  • uu_mktempcrates.io

    fixed in 0.6.0

References 2

GitHub · uutils/coreutils