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

CVE-2026-35378: uutils coreutils has an Incorrect Short Circuit Evaluation Issue

April 22, 2026 (updated April 30, 2026)

A logic error in the expr utility of uutils coreutils causes the program to evaluate parenthesized subexpressions during the parsing phase rather than at the execution phase. This implementation flaw prevents the utility from performing proper short-circuiting for logical OR (|) and AND (&) operations. As a result, arithmetic errors (such as division by zero) occurring within “dead” branches, branches that should be ignored due to short-circuiting, are raised as fatal errors. This divergence from GNU expr behavior can cause guarded expressions within shell scripts to fail with hard errors instead of returning expected boolean results, leading to premature script termination and breaking GNU-compatible shell control flow.

References

  • github.com/advisories/GHSA-5pv5-xh52-hvrp
  • github.com/uutils/coreutils
  • github.com/uutils/coreutils/commit/76b2f7877f558f3bfa78e3d4f49f022460f509b7
  • github.com/uutils/coreutils/pull/11395
  • github.com/uutils/coreutils/releases/tag/0.8.0
  • nvd.nist.gov/vuln/detail/CVE-2026-35378

Code Behaviors & Features

Detect and mitigate CVE-2026-35378 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.8.0

Fixed versions

  • 0.8.0

Solution

Upgrade to version 0.8.0 or above.

Impact 3.3 LOW

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

Learn more about CVSS

Weakness

  • CWE-768: Incorrect Short Circuit Evaluation

Source file

cargo/coreutils/CVE-2026-35378.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:06 +0000.