CVE-2026-35342
LOW 3.3CVSS 3.1mktemp: empty TMPDIR creates temp files in CWD instead of /tmp
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.
- Published
- 22 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security@ubuntu.com
- NVD status
- Analyzed
- Weakness
- CWE-377
- Also known as
- GHSA-2w8r-9xj7-69j5
- Sources
- NVDJSONOSV GHSA-2w8r-9xj7-69j5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@ubuntu.com (Secondary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | uutils | coreutilscpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:* |
< 0.6.0 | 0.6.0 |
| OSV | crates.io | uu_mktemp | < 0.6.0 | 0.6.0 |
References
- https://github.com/uutils/coreutils/pull/10566 · Issue Tracking, Patch, WEB
- https://github.com/uutils/coreutils/releases/tag/0.6.0 · Release Notes, WEB
- https://github.com/uutils/coreutils/security/advisories/GHSA-2w8r-9xj7-69j5 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-35342 · ADVISORY
- https://github.com/uutils/coreutils/commit/eb25ec328b226d8fbbaa4058bf9187165bf06d51 · WEB
- https://github.com/uutils/coreutils · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 22 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jul 2026)