Vulnerability · Published Apr 22, 2026 · Assigned by canonical
CVE-2026-35342uutils coreutils mktemp Insecure Temporary File Placement via Empty TMPDIR
Low 3.3
In plain English
A low-severity security flaw in coreutils from Uutils. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rust-coreutils | no fix listed | DEBIAN-CVE-2026-35342 |
| Debian:13 | rust-coreutils | no fix listed | DEBIAN-CVE-2026-35342 |
| Debian:14 | rust-coreutils | 0.6.0-1 | DEBIAN-CVE-2026-35342 |
| Ubuntu:24.04:LTS | rust-coreutils | no fix listed | UBUNTU-CVE-2026-35342 |
| Ubuntu:25.10 | rust-coreutils | no fix listed | UBUNTU-CVE-2026-35342 |
Affected products (as reported)
Weakness: CWE-377 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/uutils/coreutils/pull/10566 patch, issue-tracking
- https://github.com/uutils/coreutils/releases/tag/0.6.0 vendor-advisory