CVE-2026-35346: comm: lossy UTF-8 conversion silently corrupts non-UTF-8 output
The comm utility in uutils coreutils silently corrupts data by performing lossy UTF-8 conversion on all output lines. The implementation uses String::fromutf8lossy(), 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.
Published Jul 6, 2026
Affected packages
uu_comm
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.6.0
- Fixed in
- 0.6.0
- Check
cargo tree -i uu_comm
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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._
References
- https://github.com/uutils/coreutils/security/advisories/GHSA-6gcw-w7cp-94g9
- https://nvd.nist.gov/vuln/detail/CVE-2026-35346
- https://github.com/uutils/coreutils/issues/10192
- https://github.com/uutils/coreutils/pull/10206
- https://github.com/uutils/coreutils/commit/b9372e509ea9b278fe13763237067a261bb8c946
- https://github.com/uutils/coreutils/releases/tag/0.6.0
- https://github.com/advisories/GHSA-6gcw-w7cp-94g9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
