GitHub Advisoryadvisory · crates.io

GHSA-6gcw-w7cp-94g9 comm: lossy UTF-8 conversion silently corrupts non-UTF-8 output

LOW Published 2026-07-06 Modified 2026-07-06 Official page ↗
Aliases
CVE-2026-35346
Ecosystem
crates.io
Packages
uu_comm
Severity
Low
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-116, CWE-176
Reviewed
2026-07-06

Affected packages

• crates.io uu_comm: < 0.6.0 → fixed in 0.6.0

Description

The comm utility in uutils coreutils silently corrupts data by performing lossy UTF-8 conversion on all output lines. The implementation uses String::from_utf8_lossy(), which replaces invalid UTF-8 byte sequences with the Unicode replacement character (U+FFFD). This behavior differs from GNU comm, which processes raw bytes and preserves the original input. This results in corrupted output when the utility is used to compare binary files or files using non-UTF-8 legacy encodings. --- _Zellic finding 3.34. Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._

Related

Alias · CVE (1)

  • CVE-2026-35346 The comm utility in uutils coreutils silently corrupts data by performing lossy UTF-8 conversion on all output lines. vulnerability

Weakness · CWE (2)

  • CWE-116 Improper Encoding or Escaping of Output weakness
  • CWE-176 Improper Handling of Unicode Encoding weakness

References