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
Withdrawn
2026-07-06T19:50:32Z
Published
2026-04-22T18:31:44Z
Modified
2026-09-10T03:50:42Z
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
Duplicate Advisory: uutils coreutils' mktemp utility doesn't properly handle an empty TMPDIR environment variable
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-2w8r-9xj7-69j5. This link is maintained to preserve external references.

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

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

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

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/04/GHSA-2cxp-xq3c-mjxx/GHSA-2cxp-xq3c-mjxx.json"