GHSA-2w8r-9xj7-69j5

Suggest an improvement
Source
https://github.com/advisories/GHSA-2w8r-9xj7-69j5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-2w8r-9xj7-69j5/GHSA-2w8r-9xj7-69j5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2w8r-9xj7-69j5
Aliases
Published
2026-07-06T19:50:41Z
Modified
2026-07-06T20:11:14Z
Severity
  • 3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
mktemp: empty TMPDIR creates temp files in CWD instead of /tmp
Details

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.


Zellic finding 3.11. Reported in the Zellic uutils coreutils Program Security Assessment (for Canonical, Jan 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242.

Database specific
{
    "cwe_ids":  [
        "CWE-377"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-06T19:50:41Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

crates.io / uu_mktemp

Package

Name
uu_mktemp
View open source insights on deps.dev
Purl
pkg:cargo/uu_mktemp

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.6.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-2w8r-9xj7-69j5/GHSA-2w8r-9xj7-69j5.json"