CVE-2026-35342: The mktemp utility in uutils coreutils fails to properly handle an empty TMPDIR environment variable
CVE-2026-35342 is a low-severity flaw (CVSS 3.3) affecting coreutils. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.3 (Low) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.1% (top 97%) |
| CISA exploited list | No |
| Weakness | CWE-377 |
| Published | 2026-04-22 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-35342?
coreutils: upgrade to 0.6.0. Exact commands for each OS are on this page.
Is CVE-2026-35342 being exploited?
CVE-2026-35342 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-35342 affect?
CVE-2026-35342 affects coreutils. Severity is low (CVSS 3.3). 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 p
How urgent is CVE-2026-35342?
Priority 12/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-35341 HIGH 7.1 MITIGATE A vulnerability in uutils coreutils mkfifo allows for the unauthorized modification of permissions on existing
- CVE-2026-35364 MEDIUM 6.3 MITIGATE A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cro
- CVE-2026-35380 MEDIUM 5.5 UPGRADE A logic error in the cut utility of uutils coreutils causes the program to incorrectly interpret the literal t
- CVE-2026-35345 MEDIUM 5.3 MITIGATE A vulnerability in the tail utility of uutils coreutils allows for the exfiltration of sensitive file contents
- CVE-2026-35358 MEDIUM 4.4 UPGRADE The cp utility in uutils coreutils, when performing recursive copies (-R), incorrectly treats character and bl