Skip to content
OpenAdvisories
Low · 3.3 CVE-2026-35342 EUVD-2026-24971GHSA-2cxp-xq3c-mjxxGHSA-2w8r-9xj7-69j5

uutils coreutils mktemp Insecure Temporary File Placement via Empty TMPDIR

Published Apr 22, 2026 · Updated Apr 22, 2026 · Assigned by canonical

Description

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.

Affected products

VendorProductAffectedFixed
Uutils coreutils < 0.6.0 0.6.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-coreutils 0.6.0-1 —
Debian 13 rust-coreutils No fix yet —
Debian 12 rust-coreutils No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 rust-coreutils No fix yet —
Ubuntu 24.04 LTS rust-coreutils No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io uu_mktemp < 0.6.0 0.6.0 GHSA-2w8r-9xj7-69j5

References