GHSA-2cxp-xq3c-mjxx

Suggest an improvement
Source
https://github.com/advisories/GHSA-2cxp-xq3c-mjxx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-2cxp-xq3c-mjxx/GHSA-2cxp-xq3c-mjxx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2cxp-xq3c-mjxx
Aliases
  • CVE-2026-35342
Published
2026-04-22T18:31:44Z
Modified
2026-05-05T15:57:28.429401Z
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
uutils coreutils' mktemp utility doesn't properly handle an empty TMPDIR environment variable
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.

Database specific
{
    "cwe_ids": [
        "CWE-377"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-29T22:53:30Z",
    "nvd_published_at": "2026-04-22T17:16:36Z",
    "severity": "LOW"
}
References

Affected packages

crates.io / coreutils

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown 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/04/GHSA-2cxp-xq3c-mjxx/GHSA-2cxp-xq3c-mjxx.json"