Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. uu_printenv
  4. ›
  5. CVE-2026-35366

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

July 6, 2026

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

  • github.com/advisories/GHSA-p7h3-7q52-72w8
  • github.com/uutils/coreutils/commit/0bfbbc00c7895c0fb6ea94987b4aab99e3d7ee52
  • github.com/uutils/coreutils/issues/9701
  • github.com/uutils/coreutils/pull/9728
  • github.com/uutils/coreutils/releases/tag/0.6.0
  • github.com/uutils/coreutils/security/advisories/GHSA-p7h3-7q52-72w8
  • nvd.nist.gov/vuln/detail/CVE-2026-35366

Code Behaviors & Features

Detect and mitigate CVE-2026-35366 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

cargo/uu_printenv/CVE-2026-35366.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 18 Jul 2026 00:22:35 +0000.