CVE-2026-35342
LOW3.3EPSS 0.02%uutils coreutils' mktemp utility doesn't properly handle an empty TMPDIR environment variable
發布日:2026/4/22修改日:2026/5/5
描述
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.
受影響套件(2)
- crates.io/coreutilsfrom 0, < 0.6.0
- Debian/rust-coreutilsfrom 0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
參考連結(6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-35342
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-35342
- PATCHhttps://github.com/uutils/coreutils
- WEBhttps://github.com/uutils/coreutils/commit/eb25ec328b226d8fbbaa4058bf9187165bf06d51
- WEBhttps://github.com/uutils/coreutils/pull/10566
- WEBhttps://github.com/uutils/coreutils/releases/tag/0.6.0