GitHub Advisoryadvisory · crates.io

GHSA-5pv5-xh52-hvrp uutils coreutils has an Incorrect Short Circuit Evaluation Issue

LOW Published 2026-04-22 Modified 2026-04-30 Official page ↗
Aliases
CVE-2026-35378
Ecosystem
crates.io
Packages
coreutils
Severity
Low
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Weaknesses
CWE-768
Reviewed
2026-04-30

Affected packages

• crates.io coreutils: < 0.8.0 → fixed in 0.8.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-35378 A logic error in the expr utility of uutils coreutils causes the program to evaluate parenthesized subexpressions during the parsing phase… vulnerability

Weakness · CWE (1)

  • CWE-768 Incorrect Short Circuit Evaluation weakness

References