CVE-2026-35342 json
uutils coreutils mktemp Insecure Temporary File Placement via Empty TMPDIR
published 2026-04-22 6 mo ago modified 2026-10-26 13 d ago also GHSA-2w8r-9xj7-69j5 , EUVD-2026-24971
- cvss
- 3.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 2%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io uu_mktemp 0.6.0
- Uutils coreutils 0.6.0
- rust-coreutils Debian 14 0.6.0-1
debian advisories DEBIAN-CVE-2026-35342
- github.com/uutils/coreutils@eb25ec3 commit
- github.com/uutils/coreutils#10566 pull request
- github.com/uutils/coreutils/releases/tag/0.6.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-35342 updated cvss 3.3
rust-coreutils: mktemp: insecure temporary file placement via empty TMPDIR
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.13% chance of exploitation in the next 30 days, higher than 2% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | uu_mktemp | <0.6.0 |
0.6.0 |
Affected products
- Uutils coreutils
Classification
- Weakness
-
- CWE-377 DEPRECATED: Insecure Temporary File
References
-
github.com
/uutils/coreutils/pull/10566
patch, issue-tracking, web
-
github.com
/uutils/coreutils/commit/eb25ec328b226d8fbbaa4058bf9187165bf06d51
web
-
github.com
/uutils/coreutils/releases/tag/0.6.0
vendor-advisory, web, release-notes
-
github.com
/uutils/coreutils/security/advisories/GHSA-2w8r-9xj7-69j5
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-35342
advisory
-
github.com
/uutils/coreutils
package
Sources
- CVE List CVE-2026-35342
- GitHub Advisory GHSA-2w8r-9xj7-69j5
- NVD CVE-2026-35342
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.