CVE-2026-35342 uutils coreutils mktemp Insecure Temporary File Placement via Empty TMPDIR

Low 3.3 Published Updated

Attackers may access sensitive temporary files created in the current working directory when TMPDIR is empty, leading to information disclosure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-35342?

CVE-2026-35342 is a low-severity vulnerability in Uutils coreutils, published on 22 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-377

Which versions are affected by CVE-2026-35342?

2 open source packages ship an affected version, including uu_mktemp. It affects 1 product.

PackageAffectedFixed in
uu_mktemp crates.ioAll versions0.6.0
uu_mktemp crates.ioAll versions0.6.0

Products include Uutils Coreutils.

How do I fix CVE-2026-35342?

Upgrade uu_mktemp to 0.6.0 or later.

Is CVE-2026-35342 being exploited?

There is no known exploitation of CVE-2026-35342 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-35342, GHSA-2w8r-9xj7-69j5, UBUNTU-CVE-2026-35342.

Is CVE-2026-35342 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free