# CVE-2026-35342: uutils coreutils mktemp Insecure Temporary File Placement via Empty TMPDIR

- Severity: Low 3.3 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-22T16:07:41.640Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-2w8r-9xj7-69j5
- Weaknesses: CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- coreutils: before 0.6.0
- uu_mktemp (crates.io): before 0.6.0
- uutils coreutils: before 0.6.0

## Every score

- canonical: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.3 Low `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> (issue-tracking, patch, web)
- <https://github.com/uutils/coreutils/releases/tag/0.6.0> (release-notes, vendor-advisory, 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)

## Sources

- CVE List: [CVE-2026-35342](https://www.cve.org/CVERecord?id=CVE-2026-35342), CVE Terms of Use, modified 2026-04-22
- GitHub Advisory Database: [GHSA-2w8r-9xj7-69j5](https://github.com/advisories/GHSA-2w8r-9xj7-69j5), CC-BY-4.0, modified 2026-07-06
- NVD: [CVE-2026-35342](https://nvd.nist.gov/vuln/detail/CVE-2026-35342), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-35342 · Whole record: https://cve.day/CVE-2026-35342.json · Rebuilt by cve.day 2026-11-25T22:59:19.324Z
