medium

CVE-2026-35366

crates.io · uu_printenv • crates.io · coreutils

Summary

printenv: environment variables with invalid UTF-8 are silently skipped (evades inspection)

Severity
medium
CVSS
4.4
EPSS
0.2% (p7)
CWE
CWE-116, CWE-754
Also known as
GHSA-7259-cwhx-3xx3, GHSA-p7h3-7q52-72w8
Published
2026-07-06
Updated
2026-07-06

Advisory details

The printenv utility in uutils coreutils fails to display environment variables containing invalid UTF-8 byte sequences. While POSIX permits arbitrary bytes in environment strings, the uutils implementation silently skips these entries rather than printing the raw bytes. This vulnerability allows malicious environment variables (e.g., adversarial LD_PRELOAD values) to evade inspection by administrators or security auditing tools, potentially allowing library injection or other environment-based attacks to go undetected.


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

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.