CVE-2026-35342
uutils coreutils mktemp Insecure Temporary File Placement via Empty TMPDIR
- State
- Published
- Severity
- 3.3 Low
- Published
- Apr 22, 2026
- Updated
- Apr 22, 2026
- Reserved
- Apr 2, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 3.3 Low | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N | canonical |
Weaknesses
- CWE-377 Insecure Temporary File
Affected Products
| Product | Versions |
|---|---|
coreutilsUutils |
|
References
- https://github.com/uutils/coreutils/pull/10566patchissue-tracking
- https://github.com/uutils/coreutils/releases/tag/0.6.0vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.